Merge topic 'xcode-asm'

97140d3 Tests/Assembler: Do not use assembler in universal binaries
f3477ed Xcode: Set ASM source language in project file (#13472)
This commit is contained in:
David Cole 2012-08-20 15:39:09 -04:00 committed by CMake Topic Stage
commit b7f3cc22c3
2 changed files with 6 additions and 1 deletions

View File

@ -787,6 +787,10 @@ GetSourcecodeValueFromFileExtension(const std::string& _ext,
{
sourcecode += ".fortran.f90";
}
else if(lang == "ASM")
{
sourcecode += ".asm";
}
//else
// {
// // Already specialized above or we leave sourcecode == "sourcecode"

View File

@ -7,7 +7,8 @@ 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_GENERATOR}" MATCHES "Makefile|Xcode" AND
NOT CMAKE_OSX_ARCHITECTURES)
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)