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)