mirror of https://github.com/google/snappy.git
Matching clang.
This commit is contained in:
parent
955a5dd1b3
commit
e9a6a08439
|
@ -67,8 +67,7 @@ else(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
|
||||||
endif(NOT CMAKE_CXX_FLAGS MATCHES "-Wextra")
|
endif(NOT CMAKE_CXX_FLAGS MATCHES "-Wextra")
|
||||||
|
|
||||||
# Use -Werror for clang only.
|
# Use -Werror for clang only.
|
||||||
# There are many clang compiler ID's, but only one gcc.
|
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||||
if(NOT CMAKE_CXX_COMPILER_ID STREQUAL "GCC")
|
|
||||||
if(NOT CMAKE_CXX_FLAGS MATCHES "-Werror")
|
if(NOT CMAKE_CXX_FLAGS MATCHES "-Werror")
|
||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror")
|
||||||
endif(NOT CMAKE_CXX_FLAGS MATCHES "-Werror")
|
endif(NOT CMAKE_CXX_FLAGS MATCHES "-Werror")
|
||||||
|
|
Loading…
Reference in New Issue