summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Android-Determine.cmake
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2018-09-12 06:50:16 (GMT)
committerCraig Scott <craig.scott@crascit.com>2018-09-12 06:50:16 (GMT)
commit8ede35523e6e3b6d562d30a3df7780b66bdbd971 (patch)
tree6d0f21b4b5e7787c117f86b11b4ea79c0aa18758 /Modules/Platform/Android-Determine.cmake
parente549e31f798b05345de5a36f876197b595296eb4 (diff)
downloadCMake-8ede35523e6e3b6d562d30a3df7780b66bdbd971.zip
CMake-8ede35523e6e3b6d562d30a3df7780b66bdbd971.tar.gz
CMake-8ede35523e6e3b6d562d30a3df7780b66bdbd971.tar.bz2
IN_LIST: Ensure policy allows if(IN_LIST) if used by a module
Diffstat (limited to 'Modules/Platform/Android-Determine.cmake')
-rw-r--r--Modules/Platform/Android-Determine.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Platform/Android-Determine.cmake b/Modules/Platform/Android-Determine.cmake
index e623902..bb42eed 100644
--- a/Modules/Platform/Android-Determine.cmake
+++ b/Modules/Platform/Android-Determine.cmake
@@ -18,6 +18,9 @@ if(CMAKE_SYSTEM_VERSION EQUAL 1)
return()
endif()
+cmake_policy(PUSH)
+cmake_policy(SET CMP0057 NEW) # if IN_LIST
+
# If the user provided CMAKE_SYSROOT for us, extract information from it.
set(_ANDROID_SYSROOT_NDK "")
set(_ANDROID_SYSROOT_API "")
@@ -371,3 +374,5 @@ endif()
# Report the chosen architecture.
message(STATUS "Android: Targeting API '${CMAKE_SYSTEM_VERSION}' with architecture '${CMAKE_ANDROID_ARCH}', ABI '${CMAKE_ANDROID_ARCH_ABI}', and processor '${CMAKE_SYSTEM_PROCESSOR}'")
+
+cmake_policy(POP)