cmake/Modules/CMakeDetermineASM_MASMCompiler.cmake

19 lines
586 B
CMake
Raw Normal View History

2016-10-30 18:24:19 +01:00
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
2009-10-04 10:30:41 +03:00
# Find the MS assembler (masm or masm64)
2013-03-16 19:13:01 +02:00
set(ASM_DIALECT "_MASM")
# if we are using the 64bit cl compiler, assume we also want the 64bit assembler
2015-04-27 22:25:09 +02:00
if(";${CMAKE_VS_PLATFORM_NAME};${MSVC_C_ARCHITECTURE_ID};${MSVC_CXX_ARCHITECTURE_ID};"
2019-11-11 23:01:05 +01:00
MATCHES ";(Win64|Itanium|x64|IA64);")
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT ml64)
2013-03-16 19:13:01 +02:00
else()
2019-11-11 23:01:05 +01:00
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_INIT ml)
2013-03-16 19:13:01 +02:00
endif()
2013-03-16 19:13:01 +02:00
include(CMakeDetermineASMCompiler)
set(ASM_DIALECT)