diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 88a3c5c..61cf8c2 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -102,7 +102,7 @@ if(MSVC) # MSVC or simulating MSVC > ) else() - target_compile_options(gsl_tests_config PRIVATE + target_compile_options(gsl_tests_config INTERFACE -fno-strict-aliasing -Wall -Wcast-align diff --git a/tests/CMakeLists.txt.in b/tests/CMakeLists.txt.in index 2535f8f..059fc7d 100644 --- a/tests/CMakeLists.txt.in +++ b/tests/CMakeLists.txt.in @@ -11,4 +11,5 @@ ExternalProject_Add(googletest BUILD_COMMAND "" INSTALL_COMMAND "" TEST_COMMAND "" + CMAKE_ARGS -Wno-dev )