From f2690acc5c0040a834a6c9b20e02bc00fa575b40 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 13 Nov 2023 10:31:20 +0100 Subject: [PATCH] Fix flow controllers utests compilation when using Fast CDR from thirdparty (#3979) (#3985) * 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) Co-authored-by: Eduardo Ponz Segrelles --- 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 591bd80d5a5..16e6abdca48 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