Skip to content

Commit

Permalink
Refs #20301: fix Windows warning
Browse files Browse the repository at this point in the history
Signed-off-by: JLBuenoLopez-eProsima <[email protected]>
  • Loading branch information
JLBuenoLopez committed Mar 7, 2024
1 parent aed0ff7 commit 0825505
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/unittest/rtps/domain/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ file(GLOB RTPS_DOMAIN_TESTS_SOURCE
${PROJECT_SOURCE_DIR}/src/cpp/utils/md5.cpp
${PROJECT_SOURCE_DIR}/src/cpp/utils/string_convert.cpp
${PROJECT_SOURCE_DIR}/src/cpp/utils/SystemInfo.cpp
${PROJECT_SOURCE_DIR}/src/cpp/utils/UnitsParser.cpp
${PROJECT_SOURCE_DIR}/src/cpp/xmlparser/*.cpp
)

Expand All @@ -54,6 +55,13 @@ add_executable(
${RTPS_DOMAIN_TESTS_SOURCE}
)

target_compile_definitions(${RTPS_DOMAIN_TESTS_EXEC} PRIVATE
BOOST_ASIO_STANDALONE
ASIO_STANDALONE
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
)

target_include_directories(
${RTPS_DOMAIN_TESTS_EXEC}
PRIVATE
Expand Down

0 comments on commit 0825505

Please sign in to comment.