[PATCH v6 1/6] android: cmake: fix toolchain version matching
Imre Deak
imre.deak at intel.com
Thu Sep 20 02:33:12 PDT 2012
Needed by the Android NDK r8b version.
Signed-off-by: Imre Deak <imre.deak at intel.com>
---
cmake/toolchain/android.toolchain.cmake | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cmake/toolchain/android.toolchain.cmake b/cmake/toolchain/android.toolchain.cmake
index dc33fc9..9a0b07d 100644
--- a/cmake/toolchain/android.toolchain.cmake
+++ b/cmake/toolchain/android.toolchain.cmake
@@ -457,7 +457,7 @@ if( BUILD_WITH_STANDALONE_TOOLCHAIN )
else()
execute_process( COMMAND "${ANDROID_STANDALONE_TOOLCHAIN}/bin/${__availableToolchainMachines}-gcc${TOOL_OS_SUFFIX}" --version
OUTPUT_VARIABLE __availableToolchainCompilerVersions OUTPUT_STRIP_TRAILING_WHITESPACE )
- string( REGEX MATCH "[0-9]+.[0-9]+.[0-9]+" __availableToolchainCompilerVersions "${__availableToolchainCompilerVersions}" )
+ string( REGEX MATCH "[0-9]+(\\.[0-9]+)+" __availableToolchainCompilerVersions "${__availableToolchainCompilerVersions}" )
endif()
endif()
@@ -473,7 +473,7 @@ if( BUILD_WITH_ANDROID_NDK )
foreach( __toolchain ${__availableToolchains} )
__DETECT_TOOLCHAIN_MACHINE_NAME( __machine "${ANDROID_NDK}/toolchains/${__toolchain}/prebuilt/${ANDROID_NDK_HOST_SYSTEM_NAME}" )
if( __machine )
- string( REGEX MATCH "[0-9]+.[0-9]+.[0-9]+$" __version "${__toolchain}" )
+ string( REGEX MATCH "[0-9]+(\\.[0-9]+)+$" __version "${__toolchain}" )
string( REGEX MATCH "^[^-]+" __arch "${__toolchain}" )
list( APPEND __availableToolchainMachines ${__machine} )
list( APPEND __availableToolchainArchs ${__arch} )
--
1.7.9.5
More information about the apitrace
mailing list