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:
Brad King
2025-09-17 10:44:47 -04:00
parent a3ccb05430
commit 9266d4817d
2 changed files with 6 additions and 0 deletions

View File

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

View File

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