]> git.lyx.org Git - lyx.git/blobdiff - CMakeLists.txt
Position better the cursor after math-display
[lyx.git] / CMakeLists.txt
index 785e37e7d4e7a1b90deda12eec884746c113de72..531532627d1d20d1fdaea79c0e19b98946e6ff27 100644 (file)
@@ -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)