From 6860617426b2ddf15f4f417871b5fc01be89778f Mon Sep 17 00:00:00 2001 From: Pedro Alvarez Date: Tue, 15 Oct 2019 14:18:47 +0100 Subject: [PATCH] Removing more temporary changes to CMakeLists.txt --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 74883d568..24a6ca965 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -419,10 +419,10 @@ if("Ninja" STREQUAL ${CMAKE_GENERATOR}) endif() # Add -Werror to C/C++ flags for newer compilers -#if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9) -# set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror") -# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") -#endif() +if(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.9) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") +endif() message(STATUS "CMAKE_C_FLAGS is ${CMAKE_C_FLAGS}") message(STATUS "CMAKE_CXX_FLAGS is ${CMAKE_CXX_FLAGS}")