Browse Source

Merge topic 'android-ndk-custom-toolchain'

9266d4817d Android: Allow custom compilers with NDK

Acked-by: Kitware Robot <[email protected]>
Merge-request: !11199
Brad King 1 month ago
parent
commit
792f6989e9

+ 3 - 0
Modules/Platform/Android-Determine-C.cmake

@@ -1,2 +1,5 @@
+if(CMAKE_C_COMPILER)
+  return()
+endif()
 include(Platform/Android/Determine-Compiler)
 __android_determine_compiler(C)

+ 3 - 0
Modules/Platform/Android-Determine-CXX.cmake

@@ -1,2 +1,5 @@
+if(CMAKE_CXX_COMPILER)
+  return()
+endif()
 include(Platform/Android/Determine-Compiler)
 __android_determine_compiler(CXX)