[CMAKE] msvc.cmake: Add arm64 CMAKE_ASM_MASM_COMPILER option support

CORE-17518
This commit is contained in:
Serge Gautherie 2021-05-24 08:56:17 +02:00 committed by Stanislav Motylkov
parent e4feaa1a69
commit 51e2ab52af

View File

@ -208,7 +208,7 @@ endif()
# We don't put <INCLUDES> <DEFINES> <FLAGS> because this is handled in add_asm_files macro
if (NOT MSVC_IDE)
if(ARCH STREQUAL "arm")
if(ARCH STREQUAL "arm" OR ARCH STREQUAL "arm64")
set(CMAKE_ASM_MASM_COMPILE_OBJECT "<CMAKE_ASM_MASM_COMPILER> -nologo -o <OBJECT> <SOURCE>")
else()
set(CMAKE_ASM_MASM_COMPILE_OBJECT "<CMAKE_ASM_MASM_COMPILER> /nologo /Cp /Fo <OBJECT> /c /Ta <SOURCE>")
@ -324,7 +324,7 @@ function(generate_import_lib _libname _dllname _spec_file)
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_spec_file} native-spec2def)
# Compile the generated asm stub file
if(ARCH STREQUAL "arm")
if(ARCH STREQUAL "arm" OR ARCH STREQUAL "arm64")
set(_asm_stub_command ${CMAKE_ASM_MASM_COMPILER} -nologo -o ${_asm_stubs_file}.obj ${_asm_stubs_file})
else()
set(_asm_stub_command ${CMAKE_ASM_MASM_COMPILER} /nologo /Cp /Fo${_asm_stubs_file}.obj /c /Ta ${_asm_stubs_file})