cmake: fix Android toolchain missing usage of CMAKE_PREFIX_PATH
authorMarc-André Moreau <marcandre.moreau@gmail.com>
Wed, 20 Jul 2016 01:53:23 +0000 (21:53 -0400)
committerMarc-André Moreau <marcandre.moreau@gmail.com>
Wed, 20 Jul 2016 01:53:23 +0000 (21:53 -0400)
cmake/AndroidToolchain.cmake

index d413dd0..d682e28 100644 (file)
@@ -1511,7 +1511,7 @@ set( ANDROID True )
 set( BUILD_ANDROID True )
 
 # where is the target environment
-set( CMAKE_FIND_ROOT_PATH "${ANDROID_TOOLCHAIN_ROOT}/bin" "${ANDROID_TOOLCHAIN_ROOT}/${ANDROID_TOOLCHAIN_MACHINE_NAME}" "${ANDROID_SYSROOT}" "${CMAKE_INSTALL_PREFIX}" "${CMAKE_INSTALL_PREFIX}/share" )
+set( CMAKE_FIND_ROOT_PATH "${ANDROID_TOOLCHAIN_ROOT}/bin" "${ANDROID_TOOLCHAIN_ROOT}/${ANDROID_TOOLCHAIN_MACHINE_NAME}" "${ANDROID_SYSROOT}" "${CMAKE_INSTALL_PREFIX}" "${CMAKE_INSTALL_PREFIX}/share" "${CMAKE_PREFIX_PATH}" )
 
 # only search for libraries and includes in the ndk toolchain
 set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY )