Fix precompiled headers support detection for gcc-4.6 toolchain from Android NDK r8b

The version reported by toolchain is 4.6.x-google so regex needs an adjustment.
This commit is contained in:
Andrey Kamaev 2012-09-04 16:50:55 +04:00
parent b0c7280978
commit 02b33792cb

View File

@ -19,7 +19,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
OUTPUT_VARIABLE gcc_compiler_version) OUTPUT_VARIABLE gcc_compiler_version)
#MESSAGE("GCC Version: ${gcc_compiler_version}") #MESSAGE("GCC Version: ${gcc_compiler_version}")
IF(gcc_compiler_version MATCHES "4\\.[0,2-9]\\.[0-9]") IF(gcc_compiler_version MATCHES "4\\.[0,2-9]\\.[0-9x]")
SET(PCHSupport_FOUND TRUE) SET(PCHSupport_FOUND TRUE)
ENDIF() ENDIF()