From 3cf405b60d7c49e296e5e235060d96e9692ed4b6 Mon Sep 17 00:00:00 2001 From: Uy Ha Date: Wed, 15 Nov 2023 08:44:26 +0000 Subject: [PATCH] Quote variable dereference properly --- extras/CatchAddTests.cmake | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/extras/CatchAddTests.cmake b/extras/CatchAddTests.cmake index 2fd92a1e..99649227 100644 --- a/extras/CatchAddTests.cmake +++ b/extras/CatchAddTests.cmake @@ -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() @@ -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}")