Commit f3477ed8 authored by Brad King's avatar Brad King

Xcode: Set ASM source language in project file (#13472)

Also teach the Assembler test to build under Xcode.
Suggested-by: 's avatarTobias Pape <tobiaspape@gmail.com>
parent 7e8471ce
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment