From efe788c78c381ee4a95aa9fe9a83e4815b1821e1 Mon Sep 17 00:00:00 2001 From: Eduardo Ponz Segrelles Date: Thu, 2 Nov 2023 09:12:05 +0100 Subject: [PATCH] Fix flow controllers utests compilation when using Fast CDR from thirdparty (#3979) * Refs #19839: Fix flow controllers utests compilation when using Fast CDR from thirdparty Signed-off-by: EduPonz * Refs #19839: Apply Ricardo's suggestions Signed-off-by: EduPonz --------- Signed-off-by: EduPonz (cherry picked from commit a2e699c6576ee594d9b2641074eebdaaed0324dc) --- test/unittest/rtps/flowcontrol/CMakeLists.txt | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/test/unittest/rtps/flowcontrol/CMakeLists.txt b/test/unittest/rtps/flowcontrol/CMakeLists.txt index 9eebf40d8ad..ba5b2d5cffc 100644 --- a/test/unittest/rtps/flowcontrol/CMakeLists.txt +++ b/test/unittest/rtps/flowcontrol/CMakeLists.txt @@ -45,7 +45,10 @@ target_include_directories(FlowControllerFactoryTests PRIVATE ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include ${PROJECT_SOURCE_DIR}/src/cpp ) -target_link_libraries(FlowControllerFactoryTests GTest::gmock) +target_link_libraries(FlowControllerFactoryTests + fastcdr + GTest::gmock + ) if(MSVC OR MSVC_IDE) target_link_libraries(FlowControllerFactoryTests ${PRIVACY} iphlpapi Shlwapi @@ -73,7 +76,10 @@ target_include_directories(FlowControllerPublishModesTests PRIVATE ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include ${PROJECT_SOURCE_DIR}/src/cpp ) -target_link_libraries(FlowControllerPublishModesTests GTest::gmock) +target_link_libraries(FlowControllerPublishModesTests + fastcdr + GTest::gmock + ) if(MSVC OR MSVC_IDE) target_link_libraries(FlowControllerPublishModesTests ${PRIVACY} iphlpapi Shlwapi @@ -97,7 +103,10 @@ target_include_directories(FlowControllerSchedulersTests PRIVATE ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include ${PROJECT_SOURCE_DIR}/src/cpp ) -target_link_libraries(FlowControllerSchedulersTests GTest::gmock) +target_link_libraries(FlowControllerSchedulersTests + fastcdr + GTest::gmock + ) if(MSVC OR MSVC_IDE) target_link_libraries(FlowControllerSchedulersTests ${PRIVACY} iphlpapi Shlwapi