Skip to content

Commit

Permalink
Refs 13288. Fixed link error on ListenerTests.
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <MiguelCompany@eprosima.com>
  • Loading branch information
MiguelCompany committed Dec 16, 2021
1 parent 041bd43 commit ccdf876
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/unittest/dds/status/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
$<$<AND:$<BOOL:${ANDROID}>,$<NOT:$<BOOL:${HAVE_CXX14}>>,$<NOT:$<BOOL:${HAVE_CXX1Y}>>>:ASIO_DISABLE_STD_STRING_VIEW>
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
$<$<BOOL:${WIN32}>:_ENABLE_ATOMIC_ALIGNMENT_FIX>
)
target_include_directories(ListenerTests PRIVATE
${Asio_INCLUDE_DIR}
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit ccdf876

Please sign in to comment.