Notes |
|
(0025581)
|
David Cole
|
2011-02-25 17:07
|
|
Isn't ".mm" the commonly accepted file extension for objective-c++? What happens if you use a *.mm file instead of *.M? |
|
|
(0025582)
|
David Cole
|
2011-02-25 17:09
|
|
Is *.M also commonly expected to compile as objective-c++, and be equivalent to *.mm? |
|
|
(0025584)
|
tim blechmann
|
2011-02-25 17:34
|
|
according to the gcc man page:
For any given input file, the file name suffix determines what kind of compilation is done:
[snip]
file.mm
file.M
Objective-C++ source code which must be preprocessed. |
|
|
(0025585)
|
David Cole
|
2011-02-25 17:41
|
|
I would think, however, that on a typical Mac, which is "case insensitive" for file name comparison purposes, using *.M to distinguish from *.m is not that great of a convention... Personally, I would not rely on it when there's an alternative that avoids the issue.
However... since it works with Makefiles, it should probably work with Xcode too. Valid bug. Thanks for the report. |
|
|
(0025587)
|
tim blechmann
|
2011-02-26 04:51
|
|
actually, native xcode projects seem to detect the language correctly as well.
(at least that was reported, cannot test myself as i am not on osx) |
|
|
(0025821)
|
Sean McBride
|
2011-03-18 14:13
|
|
I've never seen nor heard of .M being used for Obj-C++... |
|
|
(0030618)
|
David Cole
|
2012-08-13 15:36
|
|
Sending old, not-recently-updated issues to the backlog.
(The age of the bug alone means that nobody is actively working on it...)
If an issue you care about is sent to the backlog when you feel it should have been addressed in a different manner, please bring it up on the CMake mailing list for discussion. Sign up for the mailing list here, if you're not already on it: http://www.cmake.org/mailman/listinfo/cmake [^]
It's easy to re-activate a bug here if you can find a CMake developer who has the bandwidth to take it on, and ferry a fix through to our 'next' branch for dashboard testing.
|
|
|
(0041807)
|
Kitware Robot
|
2016-06-10 14:28
|
|
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. |
|