You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
776 B
19 lines
776 B
diff --git a/Modules/Platform/Android/Determine-Compiler.cmake b/Modules/Platform/Android/Determine-Compiler.cmake
|
|
index a03ebcc29..34d527741 100644
|
|
--- a/Modules/Platform/Android/Determine-Compiler.cmake
|
|
+++ b/Modules/Platform/Android/Determine-Compiler.cmake
|
|
@@ -31,6 +31,14 @@ elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
|
|
set(_ANDROID_HOST_EXT "")
|
|
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows")
|
|
set(_ANDROID_HOST_EXT ".exe")
|
|
+elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Android")
|
|
+ macro(__android_determine_compiler lang)
|
|
+ # Do nothing
|
|
+ endmacro()
|
|
+ if(NOT CMAKE_CXX_COMPILER_NAMES)
|
|
+ set(CMAKE_CXX_COMPILER_NAMES c++)
|
|
+ endif()
|
|
+ return()
|
|
else()
|
|
message(FATAL_ERROR "Android: Builds hosted on '${CMAKE_HOST_SYSTEM_NAME}' not supported.")
|
|
endif()
|
|
|