We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
-Wall -Wshadow -Werror
1 parent c4ccab3 commit 1ded831Copy full SHA for 1ded831
googletest/cmake/internal_utils.cmake
@@ -77,6 +77,10 @@ macro(config_compiler_and_linker)
77
# Suppress "unreachable code" warning
78
# http://stackoverflow.com/questions/3232669 explains the issue.
79
set(cxx_base_flags "${cxx_base_flags} -wd4702")
80
+ elseif (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
81
+ set(cxx_base_flags "-Wall -Wshadow -Werror")
82
+ set(cxx_exception_flags "-fexceptions")
83
+ set(cxx_no_exception_flags "-fno-exceptions")
84
elseif (CMAKE_COMPILER_IS_GNUCXX)
85
set(cxx_base_flags "-Wall -Wshadow -Werror")
86
if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 7.0.0)
0 commit comments