Commit 3d8c7c3 1 parent bc41616 commit 3d8c7c3 Copy full SHA for 3d8c7c3
File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,13 @@ target_compile_features(glz_test_common INTERFACE cxx_std_23)
23
23
target_link_libraries (glz_test_common INTERFACE ut::ut glaze::glaze)
24
24
if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" )
25
25
target_compile_options (glz_test_common INTERFACE -fno-exceptions -fno-rtti)
26
- if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang" )
26
+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" )
27
+ if (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 12)
28
+ target_compile_options (glz_test_common INTERFACE -Wall -Wextra -pedantic $<$<CONFIG:Debug>:-Werror>)
29
+ else ()
30
+ target_compile_options (glz_test_common INTERFACE -Wall -Wextra -pedantic)
31
+ endif ()
32
+ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
27
33
target_compile_options (glz_test_common INTERFACE -Wall -Wextra -pedantic $<$<CONFIG:Debug>:-Werror>)
28
34
else ()
29
35
target_compile_options (glz_test_common INTERFACE -Wall -Wextra -pedantic)
You can’t perform that action at this time.
0 commit comments