mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Cmake build: Abort build-configuration if using a too old c++ gnu compiler
This commit is contained in:
parent
7fb1dfe61e
commit
e3524cefaa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user