Android: always sort list of NDK toolchains

Order returned by CMake is unreliable but we need clang to go after gcc for
automatic toolchain selection.
pull/192/head
Andrey Kamaev 12 years ago
parent 03f402892d
commit cbe22fb5d1
  1. 3
      android/android.toolchain.cmake

@ -596,6 +596,9 @@ if( BUILD_WITH_ANDROID_NDK )
endif()
if( NOT __availableToolchains )
file( GLOB __availableToolchains RELATIVE "${ANDROID_NDK}/toolchains" "${ANDROID_NDK}/toolchains/*" )
if( __availableToolchains )
list(SORT __availableToolchains) # we need clang to go after gcc
endif()
__LIST_FILTER( __availableToolchains "^[.]" )
__LIST_FILTER( __availableToolchains "llvm" )
__GLOB_NDK_TOOLCHAINS( __availableToolchains )

Loading…
Cancel
Save