mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-18 13:21:40 +00:00
Fixed: GCC 5 version check fails for PCH support
This commit is contained in:
parent
5a3a0ad828
commit
04dc37c4be
1 changed files with 2 additions and 2 deletions
|
@ -16,9 +16,9 @@ ELSE()
|
||||||
ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
|
ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
|
||||||
OUTPUT_VARIABLE gcc_compiler_version)
|
OUTPUT_VARIABLE gcc_compiler_version)
|
||||||
|
|
||||||
IF(gcc_compiler_version MATCHES "^4\\.1(\\.[0-9]+)?")
|
IF(gcc_compiler_version VERSION_LESS "4.2")
|
||||||
SET(PCHSupport_FOUND FALSE)
|
SET(PCHSupport_FOUND FALSE)
|
||||||
ELSEIF(gcc_compiler_version MATCHES "^4\\.[0-9]+(\\.[0-9]+)?")
|
ELSE()
|
||||||
SET(PCHSupport_FOUND TRUE)
|
SET(PCHSupport_FOUND TRUE)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
ELSE()
|
ELSE()
|
||||||
|
|
Loading…
Reference in a new issue