--- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,7 +68,7 @@ # Use -Werror for clang only. if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") - if(NOT CMAKE_CXX_FLAGS MATCHES "-Werror") + if(0) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") endif(NOT CMAKE_CXX_FLAGS MATCHES "-Werror") endif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")