Skip to content

Commit

Permalink
message_wrapper() Use arg forwarding to preserve semi-colons (TriBITS…
Browse files Browse the repository at this point in the history
…Pub#483)

This was not printing out the semi-colons in a list passed to
message_wrapper().

I noticed this while working on TriBITSPub#483.
  • Loading branch information
bartlettroscoe committed Jun 7, 2022
1 parent 244cb91 commit f62dbf3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tribits/core/utils/MessageWrapper.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,13 @@ include(GlobalSet)
# verify that they say the right thing.
#
function(message_wrapper)
#message("MESSAGE_WRAPPER: ${ARGN}")
cmake_parse_arguments(PARSE_ARGV 0 FWD "" "" "")
#message("MESSAGE_WRAPPER: ${FWD_UNPARSED_ARGUMENTS}")
if (MESSAGE_WRAPPER_UNIT_TEST_MODE)
global_set(MESSAGE_WRAPPER_INPUT "${MESSAGE_WRAPPER_INPUT}" ${ARGN})
global_set(MESSAGE_WRAPPER_INPUT "${MESSAGE_WRAPPER_INPUT}"
${FWD_UNPARSED_ARGUMENTS})
else()
message(${ARGN})
message(${FWD_UNPARSED_ARGUMENTS})
endif()
endfunction()

0 comments on commit f62dbf3

Please sign in to comment.