From dda1d1e38bd2a6c9b83d161a7d7a3fdf8e999345 Mon Sep 17 00:00:00 2001 From: Chris Green Date: Wed, 6 Nov 2024 15:05:24 -0600 Subject: [PATCH] Properly quote template substitutions Fixes #21. --- etc/CompileOnlyTest.in | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/etc/CompileOnlyTest.in b/etc/CompileOnlyTest.in index 702673f8..10b68143 100644 --- a/etc/CompileOnlyTest.in +++ b/etc/CompileOnlyTest.in @@ -1,13 +1,13 @@ #!/bin/bash -"@CMAKE_COMMAND@" -S . -B build -G@CMAKE_GENERATOR@ \ - -DCMAKE_CXX_EXTENSIONS:BOOL=@CMAKE_CXX_EXTENSIONS@ \ - -DCMAKE_CXX_STANDARD_REQUIRED:BOOL=@CMAKE_CXX_STANDARD_REQUIRED@ \ - -DCMAKE_CXX_STANDARD=@CMAKE_CXX_STANDARD@ \ - -DCMAKE_C_STANDARD=@CMAKE_C_STANDARD@ \ - -DCMAKE_C_COMPILER=@CMAKE_C_COMPILER@ \ - -DCMAKE_CXX_COMPILER=@CMAKE_CXX_COMPILER@ \ - -DCMAKE_BUILD_TYPE=@CMAKE_BUILD_TYPE@ || +"@CMAKE_COMMAND@" -S . -B build -G"@CMAKE_GENERATOR@" \ + -DCMAKE_CXX_EXTENSIONS:BOOL="@CMAKE_CXX_EXTENSIONS@" \ + -DCMAKE_CXX_STANDARD_REQUIRED:BOOL="@CMAKE_CXX_STANDARD_REQUIRED@" \ + -DCMAKE_CXX_STANDARD="@CMAKE_CXX_STANDARD@" \ + -DCMAKE_C_STANDARD="@CMAKE_C_STANDARD@" \ + -DCMAKE_C_COMPILER="@CMAKE_C_COMPILER@" \ + -DCMAKE_CXX_COMPILER="@CMAKE_CXX_COMPILER@" \ + -DCMAKE_BUILD_TYPE="@CMAKE_BUILD_TYPE@" || exit @skip_return_code@ "@CMAKE_COMMAND@" --build build "$@"