MantisBT - CMake
View Issue Details
0009126CMakeCMakepublic2009-06-09 21:062016-06-10 14:30
Jason Eubank 
Bill Hoffman 
normalfeatureN/A
closedmoved 
CMake-2-6 
 
0009126: Feature request: Support for "File Type" setting in Xcode via file property
Currently the Xcode generator in CMake has a file type mapping to explicitly map extensions to Xcode's "File Type" property. This setting can be seen in Xcode by right-clicking a source file and selecting "Get Info".

For file extensions that CMake does not know it simply applies the type "sourcecode", however it would be nice if this could be overridden by using something such as:

set_source_files_properties(foo.asm PROPERTIES XCODE_FILE_TYPE "sourcecode.nasm")

Where "XCODE_FILE_TYPE" is the property type to be added for this feature.
This feature may also enable other language support simply through this property assuming this is an acceptable convention for the Xcode generator.
No tags attached.
Issue History
2009-06-09 21:06Jason EubankNew Issue
2009-09-14 15:21Bill HoffmanStatusnew => assigned
2009-09-14 15:21Bill HoffmanAssigned To => Bill Hoffman
2012-04-10 13:36David ColeNote Added: 0029116
2016-06-10 14:27Kitware RobotNote Added: 0041567
2016-06-10 14:27Kitware RobotStatusassigned => resolved
2016-06-10 14:27Kitware RobotResolutionopen => moved
2016-06-10 14:30Kitware RobotStatusresolved => closed

Notes
(0029116)
David Cole   
2012-04-10 13:36   
If you would like to construct a git commit (based on the present 'master' branch), and then attach the patch produced by:

  git format-patch -1

to the issue at http://public.kitware.com/Bug/view.php?id=9126, [^] then we will consider it for inclusion in a future CMake release.

Seems like the easiest thing to do, at least for your case, would simply be add the "nasm" file extension to the code in the recently factored-out function GetSourcecodeValueFromFileExtension in Source/cmGlobalXCodeGenerator.cxx. Adding more known file types to that function will help us keep CMakeLists from being cluttered with too many required source file properties.
(0041567)
Kitware Robot   
2016-06-10 14:27   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.