We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcbccc2 commit 99fbb4eCopy full SHA for 99fbb4e
1 file changed
test/CMakeLists.txt
@@ -37,7 +37,7 @@ if(nlohmann_json_FOUND)
37
endif()
38
39
if(CMAKE_CXX_COMPILER_ID MATCHES GNU OR CMAKE_CXX_COMPILER_ID MATCHES Intel)
40
- add_compile_options(-Werror -Wall -Wextra)
+ add_compile_options(-Werror -Wall -Wextra $<$<AND:$<CXX_COMPILER_ID:GNU>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,12>>:-Wno-array-bounds>)
41
42
if(NOT CMAKE_CXX_FLAGS MATCHES "-march")
43
CHECK_CXX_COMPILER_FLAG(-march=native HAS_MARCH_NATIVE)
0 commit comments