Skip to content

Commit

Permalink
Fix request reply example isolated build (#5236)
Browse files Browse the repository at this point in the history
Signed-off-by: JesusPoderoso <jesuspoderoso@eprosima.com>
  • Loading branch information
JesusPoderoso authored Sep 13, 2024
1 parent 8ee1d37 commit 5abe0c0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/cpp/request_reply/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
endif()

message(STATUS "Configuring ${PROJECT_NAME}...")
file(GLOB_RECURSE REQUEST_REPLY_SOURCES_CXX "*.cxx")
file(GLOB_RECURSE REQUEST_REPLY_SOURCES_CPP "*.cpp")
file(GLOB REQUEST_REPLY_TYPES_SOURCES_CXX "types/*.cxx")
file(GLOB REQUEST_REPLY_SOURCES_CXX "*.cxx")
file(GLOB REQUEST_REPLY_TYPES_SOURCES_CPP "types/*.cpp")
file(GLOB REQUEST_REPLY_SOURCES_CPP "*.cpp")

add_executable(request_reply ${REQUEST_REPLY_SOURCES_CXX} ${REQUEST_REPLY_SOURCES_CPP})
add_executable(request_reply ${REQUEST_REPLY_SOURCES_CXX} ${REQUEST_REPLY_SOURCES_CPP} ${REQUEST_REPLY_TYPES_SOURCES_CXX} ${REQUEST_REPLY_TYPES_SOURCES_CPP})
target_compile_definitions(request_reply PRIVATE
$<$<AND:$<NOT:$<BOOL:${WIN32}>>,$<STREQUAL:"${CMAKE_BUILD_TYPE}","Debug">>:__DEBUG>
$<$<BOOL:${INTERNAL_DEBUG}>:__INTERNALDEBUG> # Internal debug activated.
Expand Down

0 comments on commit 5abe0c0

Please sign in to comment.