Merge topic 'clang-asm'

7e8471c Recognize Clang ASM support (#13473)
This commit is contained in:
David Cole 2012-08-20 15:38:51 -04:00 committed by CMake Topic Stage
commit 2582994e57
2 changed files with 2 additions and 1 deletions

View File

@ -0,0 +1 @@
include(Compiler/GNU-ASM)

View File

@ -8,7 +8,7 @@ set(SRCS)
# (at least) the following toolchains can process assembler files directly
# and also generate assembler files from C:
if("${CMAKE_GENERATOR}" MATCHES "Makefile")
if(("${CMAKE_C_COMPILER_ID}" MATCHES "^(GNU|HP|SunPro|XL)$") OR ("${CMAKE_C_COMPILER_ID}" STREQUAL "Intel" AND UNIX))
if(("${CMAKE_C_COMPILER_ID}" MATCHES "^(GNU|Clang|HP|SunPro|XL)$") OR ("${CMAKE_C_COMPILER_ID}" STREQUAL "Intel" AND UNIX))
set(C_FLAGS "${CMAKE_C_FLAGS}")
separate_arguments(C_FLAGS)
set(SRCS main.s)