mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Cmake build: Abort build-configuration if using a too old c++ gnu compiler
This commit is contained in:
parent
7fb1dfe61e
commit
e3524cefaa
@ -70,6 +70,13 @@ endif()
|
||||
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.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)
|
||||
|
Loading…
Reference in New Issue
Block a user