f935cc7152
CMAKE_SYSTEM_NAME by default, then disable CMake's built-in NDK support when CMAKE_SYSTEM_NAME is set to Android.
18 lines
489 B
Diff
18 lines
489 B
Diff
diff --git a/Modules/Platform/Android-Clang.cmake b/Modules/Platform/Android-Clang.cmake
|
|
index 9ed1e01f9..6443512ee 100644
|
|
--- a/Modules/Platform/Android-Clang.cmake
|
|
+++ b/Modules/Platform/Android-Clang.cmake
|
|
@@ -24,6 +24,12 @@ if(CMAKE_SYSTEM_VERSION EQUAL 1)
|
|
return()
|
|
endif()
|
|
|
|
+if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Android")
|
|
+ macro(__android_compiler_clang lang)
|
|
+ endmacro()
|
|
+ return()
|
|
+endif()
|
|
+
|
|
include(Platform/Android-Common)
|
|
|
|
# The NDK toolchain configuration files at:
|