mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 08:20:18 -06:00
Android: Allow custom compilers with NDK
If the user or toolchain file has already set `CMAKE_{C,CXX}_COMPILER`,
do not override it with the NDK-provided toolchain.
Fixes: #27162
This commit is contained in:
@@ -1,2 +1,5 @@
|
||||
if(CMAKE_C_COMPILER)
|
||||
return()
|
||||
endif()
|
||||
include(Platform/Android/Determine-Compiler)
|
||||
__android_determine_compiler(C)
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
if(CMAKE_CXX_COMPILER)
|
||||
return()
|
||||
endif()
|
||||
include(Platform/Android/Determine-Compiler)
|
||||
__android_determine_compiler(CXX)
|
||||
|
||||
Reference in New Issue
Block a user