Skip to content

Commit

Permalink
Quote variable dereference properly
Browse files Browse the repository at this point in the history
  • Loading branch information
uyha committed Nov 15, 2023
1 parent 8676720 commit 53968c9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions extras/CatchAddTests.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function(catch_discover_tests_impl)
endforeach(char)
# ...add output dir
if(output_dir)
string(REGEX REPLACE "[^A-Za-z0-9_]" "_" test_name_clean ${test_name})
string(REGEX REPLACE "[^A-Za-z0-9_]" "_" test_name_clean "${test_name}")
set(output_dir_arg "--out ${output_dir}/${output_prefix}${test_name_clean}${output_suffix}")
endif()

Expand All @@ -157,8 +157,7 @@ function(catch_discover_tests_impl)
add_command(set_tests_properties
"${prefix}${test}${suffix}"
PROPERTIES
ENVIRONMENT_MODIFICATION "${environment_modifications}"
)
ENVIRONMENT_MODIFICATION "${environment_modifications}")
endif()

list(APPEND tests "${prefix}${test}${suffix}")
Expand Down

0 comments on commit 53968c9

Please sign in to comment.