mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03: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