2016-09-27 22:01:08 +03:00
|
|
|
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
# file Copyright.txt or https://cmake.org/licensing for details.
|
2007-06-28 17:14:27 +04:00
|
|
|
|
2009-09-28 19:46:51 +04:00
|
|
|
|
2007-06-28 17:14:27 +04:00
|
|
|
# This file is used by EnableLanguage in cmGlobalGenerator to
|
2010-09-25 23:00:52 +04: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.
|
|
|
|
|
2011-08-17 03:00:28 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(_ASM_COMPILER_WORKS 0)
|
2011-08-17 03:00:28 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
if(CMAKE_ASM${ASM_DIALECT}_COMPILER)
|
|
|
|
set(_ASM_COMPILER_WORKS 1)
|
|
|
|
endif()
|
2011-08-17 03:00:28 +04:00
|
|
|
|
|
|
|
# when using generic "ASM" support, we must have detected the compiler ID, fail otherwise:
|
2012-08-13 21:47:32 +04:00
|
|
|
if("ASM${ASM_DIALECT}" STREQUAL "ASM")
|
|
|
|
if(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
|
|
|
|
set(_ASM_COMPILER_WORKS 0)
|
|
|
|
endif()
|
|
|
|
endif()
|
2011-08-17 03:00:28 +04:00
|
|
|
|
2012-08-13 21:47:32 +04:00
|
|
|
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_WORKS ${_ASM_COMPILER_WORKS} CACHE INTERNAL "")
|