Xcode: Set ASM source language in project file (#13472)
Also teach the Assembler test to build under Xcode. Suggested-by: Tobias Pape <tobiaspape@gmail.com>
This commit is contained in:
parent
7e8471ce7b
commit
f3477ed88c
|
@ -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"
|
||||
|
|
|
@ -7,7 +7,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_GENERATOR}" MATCHES "Makefile|Xcode")
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue