Skip to content

Commit

Permalink
Properly quote template substitutions
Browse files Browse the repository at this point in the history
Fixes #21.
  • Loading branch information
greenc-FNAL committed Nov 8, 2024
1 parent 8d9525a commit dda1d1e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions etc/CompileOnlyTest.in
Original file line number Diff line number Diff line change
@@ -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 "$@"

0 comments on commit dda1d1e

Please sign in to comment.