From 52800cd03b43d15deedbf80bbba7ff528e7c342e Mon Sep 17 00:00:00 2001 From: kervala Date: Sun, 25 Oct 2015 15:11:27 +0100 Subject: [PATCH] Fixed: GCC 5 version check fails for PCH support --HG-- branch : develop --- code/CMakeModules/PCHSupport.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/CMakeModules/PCHSupport.cmake b/code/CMakeModules/PCHSupport.cmake index c81e88a5d..005d430d2 100644 --- a/code/CMakeModules/PCHSupport.cmake +++ b/code/CMakeModules/PCHSupport.cmake @@ -16,9 +16,9 @@ ELSE() ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion 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) - ELSEIF(gcc_compiler_version MATCHES "^4\\.[0-9]+(\\.[0-9]+)?") + ELSE() SET(PCHSupport_FOUND TRUE) ENDIF() ELSE()