Skip to content

Commit

Permalink
Debug name/value pairs
Browse files Browse the repository at this point in the history
  • Loading branch information
iguessthislldo committed Nov 28, 2023
1 parent 811304f commit ce7ea3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/opendds_testing.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ function(opendds_add_test)
endfunction()

function(_opendds_env_append setenv)
set(orig_argn "${ARGN}")
list(LENGTH ARGN len)
while(len GREATER 1)
list(GET ARGN 0 name)
Expand All @@ -50,7 +51,7 @@ function(_opendds_env_append setenv)
list(LENGTH ARGN len)
endwhile()
if(len GREATER 0)
message(FATAL_ERROR "Arguments must be in name value pairs")
message(FATAL_ERROR "Arguments must be in name value pairs: ${orig_argn}")
endif()
set(env "${env}" PARENT_SCOPE)
endfunction()
Expand Down

0 comments on commit ce7ea3b

Please sign in to comment.