diff --git a/CMakeLists.txt b/CMakeLists.txt index 54b029b4b2..ac08a2bf56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,9 +77,10 @@ if(NOT help AND NOT HELP) # 'project' triggers the searching for a compiler project(${LYX_PROJECT}) if (CMAKE_COMPILER_IS_GNUCXX) - if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.9") + set(MIN_GCC_VERSION "5.1") + if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS ${MIN_GCC_VERSION}) message(STATUS "Gnu CXX compiler version = ${CMAKE_CXX_COMPILER_VERSION}") - message(STATUS "is too old, should be >= 4.9") + message(STATUS "is too old, should be >= ${MIN_GCC_VERSION}") message(FATAL_ERROR "Exiting") endif() endif()