File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ function(ConfigureBench BENCH_NAME)
2828 target_include_directories (${BENCH_NAME} PRIVATE
2929 "${CMAKE_CURRENT_SOURCE_DIR} " )
3030 target_compile_options (${BENCH_NAME} PRIVATE --compiler-options =-Wall --compiler-options =-Wextra
31- -Wno-deprecated-gpu-targets --expt-extended-lambda -lineinfo )
31+ --compiler- options =-Werror - Wno-deprecated-gpu-targets --expt-extended-lambda)
3232 # Add GCC-specific warning suppression only for GCC
3333 if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
3434 target_compile_options (${BENCH_NAME} PRIVATE -Xcompiler -Wno-subobject-linkage)
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ function(ConfigureExample EXAMPLE_NAME EXAMPLE_SRC)
2525 target_include_directories (${EXAMPLE_NAME} PRIVATE
2626 "${CMAKE_CURRENT_SOURCE_DIR} " )
2727 target_compile_options (${EXAMPLE_NAME} PRIVATE --compiler-options =-Wall --compiler-options =-Wextra
28- -Wno-deprecated-gpu-targets --expt-extended-lambda)
28+ --compiler- options =-Werror - Wno-deprecated-gpu-targets --expt-extended-lambda)
2929 # Add GCC-specific warning suppression only for GCC
3030 if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
3131 target_compile_options (${EXAMPLE_NAME} PRIVATE -Xcompiler -Wno-subobject-linkage)
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ function(ConfigureTest TEST_NAME)
3939 set_target_properties (${TEST_NAME} PROPERTIES
4040 RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR} /tests" )
4141 target_compile_options (${TEST_NAME} PRIVATE --compiler-options =-Wall --compiler-options =-Wextra
42- -Wno-deprecated-gpu-targets --expt-extended-lambda)
42+ --compiler- options =-Werror - Wno-deprecated-gpu-targets --expt-extended-lambda)
4343 # Add GCC-specific warning suppression only for GCC
4444 if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" )
4545 target_compile_options (${TEST_NAME} PRIVATE -Xcompiler -Wno-subobject-linkage)
You can’t perform that action at this time.
0 commit comments