diff options
author | Herbert Thielen <thielen@hs-worms.de> | 2017-08-30 21:42:33 +0200 |
---|---|---|
committer | Herbert Thielen <thielen@hs-worms.de> | 2017-09-01 21:55:26 +0200 |
commit | 520ad96b78179fde7110ea29f7c22a6a9b32ed09 (patch) | |
tree | 0a3c6a79d6e0c9c6258a74187d83bb5fa50ae405 | |
parent | d15b8b4524063e065263316e67e74a47f7dc4af2 (diff) | |
download | googletest-520ad96b78179fde7110ea29f7c22a6a9b32ed09.tar.gz googletest-520ad96b78179fde7110ea29f7c22a6a9b32ed09.tar.bz2 googletest-520ad96b78179fde7110ea29f7c22a6a9b32ed09.zip |
treat all warnings as errors for GCC (-Werror)
-rw-r--r-- | googletest/cmake/internal_utils.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/googletest/cmake/internal_utils.cmake b/googletest/cmake/internal_utils.cmake index ec5d08c0..0b41e3ab 100644 --- a/googletest/cmake/internal_utils.cmake +++ b/googletest/cmake/internal_utils.cmake @@ -94,7 +94,7 @@ macro(config_compiler_and_linker) set(cxx_no_exception_flags "-D_HAS_EXCEPTIONS=0") set(cxx_no_rtti_flags "-GR-") elseif (CMAKE_COMPILER_IS_GNUCXX) - set(cxx_base_flags "-Wall -Wshadow") + set(cxx_base_flags "-Wall -Wshadow -Werror") set(cxx_exception_flags "-fexceptions") set(cxx_no_exception_flags "-fno-exceptions") # Until version 4.3.2, GCC doesn't define a macro to indicate |