blob: 250754940b7a369ac2694054dbc0b4d5ea554c60 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--- CMakeLists.txt.orig 2022-10-05 15:44:52 UTC
+++ CMakeLists.txt
@@ -255,9 +255,9 @@ include(CheckCCompilerFlag)
include(CheckCXXCompilerFlag)
function(hmat_set_compiler_flags _TARGET_NAME)
- check_cxx_compiler_flag("-Werror -Wall" HAVE_COMPILER_WARNING_FLAGS)
+ check_cxx_compiler_flag("-Wall" HAVE_COMPILER_WARNING_FLAGS)
if(HAVE_COMPILER_WARNING_FLAGS)
- target_compile_options(${_TARGET_NAME} PRIVATE -Werror -Wall)
+ target_compile_options(${_TARGET_NAME} PRIVATE -Wall)
foreach(flag -Wno-sign-compare;-Wno-undefined-var-template;-Wno-unused-parameter)
string(REPLACE "-" "_" varname ${flag})
check_cxx_compiler_flag("${flag}" CXX${varname})
|