From e4b8aa5967fde5942e7e7e1b852951a99b24e52e Mon Sep 17 00:00:00 2001 From: Alex Fabijanic Date: Tue, 24 Oct 2017 17:58:06 -0500 Subject: [PATCH] increase cmake compiler versions for CXX1x --- cmake/CXX1x.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/CXX1x.cmake b/cmake/CXX1x.cmake index 8977565e8..36252f2ba 100644 --- a/cmake/CXX1x.cmake +++ b/cmake/CXX1x.cmake @@ -23,8 +23,8 @@ macro(check_for_cxx11_compiler _VAR) message(STATUS "Checking for C++11 compiler") set(${_VAR}) if((MSVC AND (MSVC10 OR MSVC11 OR MSVC12 OR MSVC14)) OR - (CMAKE_COMPILER_IS_GNUCXX AND NOT ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 4.6) OR - (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 3.1) OR + (CMAKE_COMPILER_IS_GNUCXX AND NOT ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 4.8.1) OR + (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 3.3) OR (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")) set(${_VAR} 1) message(STATUS "Checking for C++11 compiler - available") @@ -44,7 +44,7 @@ macro(check_for_cxx14_compiler _VAR) message(STATUS "Checking for C++14 compiler") set(${_VAR}) if((MSVC AND (MSVC14)) OR - (CMAKE_COMPILER_IS_GNUCXX AND NOT ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 4.7) OR + (CMAKE_COMPILER_IS_GNUCXX AND NOT ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 4.9.2) OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND NOT ${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 3.4) OR (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")) set(${_VAR} 1)