X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=CMakeLists.txt;h=531532627d1d20d1fdaea79c0e19b98946e6ff27;hb=5ceb82d4e4b49f919caf156fa644360b6c66622a;hp=785e37e7d4e7a1b90deda12eec884746c113de72;hpb=dbc4c71ef5cefe695955f7b43925d2a12016c28b;p=lyx.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 785e37e7d4..531532627d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,8 +68,15 @@ if(LYX_XMINGW) endif() if(NOT help AND NOT HELP) - # 'project' triggers the searching for a compiler - project(${LYX_PROJECT}) + # 'project' triggers the searching for a compiler + project(${LYX_PROJECT}) + if (CMAKE_COMPILER_IS_GNUCXX) + if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS "4.0") + message(STATUS "Gnu CXX compiler version = ${CMAKE_CXX_COMPILER_VERSION}") + message(STATUS "is too old, should be >= 4.0") + message(FATAL_ERROR "Exiting") + endif() + endif() endif() if(UNIX)