Skip to content

Commit

Permalink
Fix an apparent typo involved in detecting toolchains.
Browse files Browse the repository at this point in the history
If __availableToolchains is falsish, file( GLOB __availableToolchainsLst ...
won't do anything to change that, so the following if statement is always false.
  • Loading branch information
rpavlik committed May 6, 2015
1 parent 98d85ae commit 75eb74f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android.toolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ if( BUILD_WITH_ANDROID_NDK )
endif()
if( NOT __availableToolchains )
file( GLOB __availableToolchainsLst RELATIVE "${ANDROID_NDK_TOOLCHAINS_PATH}" "${ANDROID_NDK_TOOLCHAINS_PATH}/*" )
if( __availableToolchains )
if( __availableToolchainsLst )
list(SORT __availableToolchainsLst) # we need clang to go after gcc
endif()
__LIST_FILTER( __availableToolchainsLst "^[.]" )
Expand Down

0 comments on commit 75eb74f

Please sign in to comment.