From 5f8a472476f0a8c9d635f366325fac4c41ec1cf4 Mon Sep 17 00:00:00 2001 From: Adam Reichold Date: Fri, 8 Jan 2016 17:58:54 +0100 Subject: [PATCH] Make the compiler require an error instead of a warning during build configuration to close #3070. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6f5c168f8..7234c6efe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -18,7 +18,7 @@ SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu11") SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11") if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9") - message(WARNING "RawTherapee should be built using GCC version 4.9 or higher!") + message(FATAL_ERROR "Building RawTherapee requires using GCC version 4.9 or higher!") endif() # We might want to build using the old C++ ABI, even when using a new GCC version