aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Martin <notmart@gmail.com>2017-03-16 14:57:28 +0100
committerMarco Martin <notmart@gmail.com>2017-03-16 14:57:28 +0100
commit7dc466a729c9972b941978db873e11540543303f (patch)
treeadea32ee82b7e3e1530939e4d285e783392ea8b6
parent3980f36db0184e0855ff5673496c6b63311c23cf (diff)
downloadextra-cmake-modules-7dc466a729c9972b941978db873e11540543303f.tar.gz
extra-cmake-modules-7dc466a729c9972b941978db873e11540543303f.tar.bz2
default for ECM_ADDITIONAL_FIND_ROOT_PATH
set ECM_ADDITIONAL_FIND_ROOT_PATH the same as CMAKE_PREFIX_PATH if not specified explicitly from the commandline reviewed-by:apol
-rw-r--r--toolchain/Android.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/toolchain/Android.cmake b/toolchain/Android.cmake
index 7852f3e8..9fed3610 100644
--- a/toolchain/Android.cmake
+++ b/toolchain/Android.cmake
@@ -160,6 +160,9 @@ endif()
SET(CMAKE_SYSTEM_NAME Android)
SET(CMAKE_SYSTEM_VERSION 1)
+if (NOT DEFINED ECM_ADDITIONAL_FIND_ROOT_PATH)
+ SET(ECM_ADDITIONAL_FIND_ROOT_PATH ${CMAKE_PREFIX_PATH})
+endif()
SET(CMAKE_FIND_ROOT_PATH ${ANDROID_NDK} ${ECM_ADDITIONAL_FIND_ROOT_PATH})
SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)