[CMake] CMake 2.8.7 + XCode generator + nasm files

Damien Chavarria roy204 at gmail.com
Fri Apr 6 03:36:06 EDT 2012


Hi all,

Sorry for reviving what seems like a previously discussed issue, but I've
been unable to find whether a resolution was reached.

Here is the problem:

I have .nasm files in my project, and when I add them to a target and then
use the XCode generator on a mac, they appear in the list of source files
to be compiled for that target in the XCode project but they don't actually
do when building it (XCode complains to the effect of "no rule to build
xxx.nasm for architecture yyy"). I noticed that the "file type" for the
NASM file in XCode (select the .nasm file in the target and right-click ->
"Get Info") shows as "sourcecode". Simply setting this to "sourcecode.nasm"
makes XCode happy and the file then builds.

I later found a previous post about this problem in the list :
http://www.cmake.org/pipermail/cmake/2009-June/030017.html
And a subsequent feature request :
http://public.kitware.com/Bug/view.php?id=9126

All this dates back from 2009 and I see no resolution on the feature
request so I'm not sure what was decided.
Is there a way to fix this from CMakeLists.txt that I missed ?

If not, I'd be more than happy to submit a patch for the feature, if that's
desirable.

Thanks all and have a nice day,
Damien.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120406/1005fdfb/attachment.htm>


More information about the CMake mailing list