Am Sonntag, 10. Mai 2015 um 10:03:13, schrieb Georg Baum <[email protected]>
> commit 7b0485dbb280ed30959634c523f302bceb8a8d97
> Author: Georg Baum <[email protected]>
> Date:   Sun May 10 10:01:33 2015 +0200
>
>     Remove gcc 3 traces
>
>     We claim that gcc 4.x is needed in INSTALL, so it does not make sense to 
> keep
>     this old stuff. Instead, I made configure output an error if gcc is too 
> old.

For cmake too? Like attached.

        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 785e37e..5315326 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)

Reply via email to