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.
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2009-10-04 10:30:41 +03:00
|
|
|
|
2008-10-12 18:41:06 +02:00
|
|
|
# This file is used by EnableLanguage in cmGlobalGenerator to
|
2011-01-16 11:35:12 +01:00
|
|
|
# determine that the selected ASM compiler works.
|
|
|
|
# For assembler this can only check whether the compiler has been found,
|
|
|
|
# because otherwise there would have to be a separate assembler source file
|
|
|
|
# for each assembler on every architecture.
|
|
|
|
|
2012-02-18 12:40:36 +02:00
|
|
|
|
2013-03-16 19:13:01 +02:00
|
|
|
set(_ASM_COMPILER_WORKS 0)
|
2012-02-18 12:40:36 +02:00
|
|
|
|
2013-03-16 19:13:01 +02:00
|
|
|
if(CMAKE_ASM${ASM_DIALECT}_COMPILER)
|
|
|
|
set(_ASM_COMPILER_WORKS 1)
|
|
|
|
endif()
|
2012-02-18 12:40:36 +02:00
|
|
|
|
|
|
|
# when using generic "ASM" support, we must have detected the compiler ID, fail otherwise:
|
2013-03-16 19:13:01 +02:00
|
|
|
if("ASM${ASM_DIALECT}" STREQUAL "ASM")
|
|
|
|
if(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
|
|
|
|
set(_ASM_COMPILER_WORKS 0)
|
|
|
|
endif()
|
|
|
|
endif()
|
2012-02-18 12:40:36 +02:00
|
|
|
|
2013-03-16 19:13:01 +02:00
|
|
|
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_WORKS ${_ASM_COMPILER_WORKS} CACHE INTERNAL "")
|