tile/third_party/context/cmake/CMakeDetermineASM_ARMASMCompiler.cmake

13 lines
444 B
CMake
Raw Normal View History

2024-06-12 00:16:26 +08:00
# Find the armasm assembler, armasm or armasm64
set(ASM_DIALECT "_ARMASM")
# If we are using the 64bit cl compiler, assume we also want the 64bit assembler
if (";${CMAKE_VS_PLATFORM_NAME};${MSVC_C_ARCHITECTURE_ID};${MSVC_CXX_ARCHITECTURE_ID};" MATCHES ";ARM64;")
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT armasm64)
else ()
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT armasm)
endif ()
include(CMakeDetermineASMCompiler)
set(ASM_DIALECT)