diff --git a/test/unittest/dds/status/CMakeLists.txt b/test/unittest/dds/status/CMakeLists.txt index c9c2d024def..97e3805ca34 100644 --- a/test/unittest/dds/status/CMakeLists.txt +++ b/test/unittest/dds/status/CMakeLists.txt @@ -125,9 +125,12 @@ add_executable(ListenerTests ${LISTENERTESTS_SOURCE}) target_compile_definitions(ListenerTests PRIVATE FASTRTPS_NO_LIB BOOST_ASIO_STANDALONE ASIO_STANDALONE + ASIO_DISABLE_VISIBILITY + SQLITE_WIN32_GETVERSIONEX=0 $<$,$>,$>>:ASIO_DISABLE_STD_STRING_VIEW> $<$>,$>:__DEBUG> $<$:__INTERNALDEBUG> # Internal debug activated. + $<$:_ENABLE_ATOMIC_ALIGNMENT_FIX> ) target_include_directories(ListenerTests PRIVATE ${Asio_INCLUDE_DIR} @@ -160,12 +163,15 @@ target_include_directories(ListenerTests PRIVATE ${PROJECT_SOURCE_DIR}/test/mock/rtps/WLP ${PROJECT_SOURCE_DIR}/include ${PROJECT_BINARY_DIR}/include ${PROJECT_SOURCE_DIR}/src/cpp + ${THIRDPARTY_BOOST_INCLUDE_DIR} ) target_link_libraries(ListenerTests fastcdr foonathan_memory ${TINYXML2_LIBRARY} GTest::gmock - ${CMAKE_DL_LIBS}) + ${CMAKE_DL_LIBS} + ${THIRDPARTY_BOOST_LINK_LIBS} + ) if(MSVC OR MSVC_IDE) target_link_libraries(ListenerTests iphlpapi Shlwapi ws2_32) endif()