f935cc7152
CMAKE_SYSTEM_NAME by default, then disable CMake's built-in NDK support when CMAKE_SYSTEM_NAME is set to Android.
16 lines
436 B
Diff
16 lines
436 B
Diff
diff --git a/Modules/Platform/Android-Determine.cmake b/Modules/Platform/Android-Determine.cmake
|
|
index bb42eedde..0e8229d5e 100644
|
|
--- a/Modules/Platform/Android-Determine.cmake
|
|
+++ b/Modules/Platform/Android-Determine.cmake
|
|
@@ -18,6 +18,10 @@ if(CMAKE_SYSTEM_VERSION EQUAL 1)
|
|
return()
|
|
endif()
|
|
|
|
+if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Android")
|
|
+ return()
|
|
+endif()
|
|
+
|
|
cmake_policy(PUSH)
|
|
cmake_policy(SET CMP0057 NEW) # if IN_LIST
|
|
|