termux-packages/packages/cmake/Modules-Platform-Android-Clang.cmake.patch
Butta f935cc7152 cmake: switch CMAKE_HOST_SYSTEM_NAME to Android, which is used to set
CMAKE_SYSTEM_NAME by default, then disable CMake's built-in NDK support
when CMAKE_SYSTEM_NAME is set to Android.
2019-09-10 19:06:22 +03:00

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: