diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 92cb4c3..88a3c5c 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -62,7 +62,6 @@ endif() # please try to keep entries ordered =) add_library(gsl_tests_config INTERFACE) if(MSVC) # MSVC or simulating MSVC - message(INFO, "br:MSVC") target_compile_options(gsl_tests_config INTERFACE ${GSL_CPLUSPLUS_OPT} /EHsc @@ -103,13 +102,13 @@ if(MSVC) # MSVC or simulating MSVC > ) else() - message(INFO, "br:MSVC:else") - target_compile_options(gsl_tests_config INTERFACE + target_compile_options(gsl_tests_config PRIVATE -fno-strict-aliasing -Wall -Wcast-align -Wconversion -Wctor-dtor-privacy + -Werror -Wextra -Wpedantic -Wshadow @@ -135,6 +134,9 @@ else() $<$: $<$,4.99>,$,6>>: $<$:-Wno-undefined-func-template> + # $<$:-Wzero-as-null-pointer-constant-> # Very noisy, minor, and just so + # # happens to trigger on googletest + # # for Ubuntu 20.04 > > $<$: