Commit 02b33792 authored by Andrey Kamaev's avatar Andrey Kamaev

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.
parent b0c72809
......@@ -19,7 +19,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX)
ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
OUTPUT_VARIABLE 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)
ENDIF()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment