Skip to content

Commit f603341

Browse files
committed
Remove yaml-cpp target library in ddsrouter tests package
Signed-off-by: Irene Bandera <irenebandera@eprosima.com>
1 parent c47c1d9 commit f603341

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

tools/ddsrouter_tool/test/application/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,12 @@ if(WIN32)
9696

9797
string(REPLACE ";" "\\;" TEST_ENVIRONMENT "${TEST_ENVIRONMENT}")
9898

99+
else()
100+
101+
# yaml-cpp changed its behavior in 0.8.0 (distributed in Ubuntu-24), so that the target changed from yaml-cpp to yaml-cpp::yaml-cpp .
102+
# Instead of using each of these names depending on the OS, we simply remove it since it's actually not required.
103+
string(REPLACE "$<TARGET_FILE_DIR:yaml-cpp>;" "" TEST_ENVIRONMENT "${TEST_ENVIRONMENT}")
104+
99105
endif(WIN32)
100106

101107
# populate the tests

0 commit comments

Comments
 (0)