Skip to content

Commit 88aa31b

Browse files
committed
Quote params
1 parent d1ee692 commit 88aa31b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ macro(check_compiler file_to_test flag_to_set)
364364
${flag_to_set} # Use CMake variable of the same name as the C flag to allow later reference
365365
${AWSLC_BINARY_DIR}
366366
SOURCES "${AWSLC_SOURCE_DIR}/tests/compiler_features_tests/${file_to_test}"
367-
CMAKE_FLAGS "-DCMAKE_C_FLAGS=-Werror ${ARGN}" "-DCMAKE_CXX_FLAGS=-Werror ${ARGN}"
367+
CMAKE_FLAGS "-DCMAKE_C_FLAGS='-Werror ${ARGN}'" "-DCMAKE_CXX_FLAGS='-Werror ${ARGN}'"
368368
OUTPUT_VARIABLE ERROR_MESSAGE)
369369
if(${flag_to_set})
370370
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D${flag_to_set}")

0 commit comments

Comments
 (0)