mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-07 22:30:13 -06:00
Merge topic 'android_clang_asm'
524f5ee1 Android: Set compiler target platform when compiling ASM with Clang
This commit is contained in:
2
Modules/Platform/Android-Clang-ASM.cmake
Normal file
2
Modules/Platform/Android-Clang-ASM.cmake
Normal file
@@ -0,0 +1,2 @@
|
||||
include(Platform/Android-Clang)
|
||||
__android_compiler_clang(ASM)
|
||||
@@ -35,7 +35,9 @@ include(Platform/Android-Common)
|
||||
include(Platform/Android/abi-${CMAKE_ANDROID_ARCH_ABI}-Clang)
|
||||
|
||||
macro(__android_compiler_clang lang)
|
||||
__android_compiler_common(${lang})
|
||||
if(NOT "x${lang}" STREQUAL "xASM")
|
||||
__android_compiler_common(${lang})
|
||||
endif()
|
||||
if(NOT CMAKE_${lang}_COMPILER_TARGET)
|
||||
set(CMAKE_${lang}_COMPILER_TARGET "${_ANDROID_ABI_CLANG_TARGET}")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user