View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0011898 | CMake | CMake | public | 2011-02-25 15:45 | 2016-06-10 14:31 | ||||
Reporter | tim blechmann | ||||||||
Assigned To | Kitware Robot | ||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | ||||
Status | closed | Resolution | moved | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake 2.8.4 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0011898: xcode projects compile objective-c++ files as objective-c | ||||||||
Description | in my cmake build system, there are some objective-c++ files with the extension .M. the cmake generated makefiles compile the source correctly, the xcode project doesn't compile it as objective-c++, but as objective-c. | ||||||||
Additional Information | CompileC buildxcode/lang/SuperCollider.build/libsclang.build/Objects-normal/x86_64/SC_Speech.o lang/LangPrimSource/SC_Speech.M normal x86_64 objective-c com.apple.compilers.gcc.4_2 cd /Users/joshp/src/supercollider setenv LANG en_US.US-ASCII /Developer/usr/bin/gcc-4.2 -x objective-c -arch x86_64 -fmessage-length=0 -pipe -Wno-trigraphs -fpascal-strings -fasm-blocks -O3 -DCMAKE_INTDIR="Release" -Dlibsclang_EXPORTS -D_REENTRANT -DSC_DARWIN -DHAVE_LIBCURL -DLIBSNDFILE_1018 -DYYSTACK_USE_ALLOCA -DHAVE_SPEECH -DHAVE_WII -DBUILDING_SUPERCOLLIDER -isysroot /Developer/SDKs/MacOSX10.6.sdk -mmacosx-version-min=10.6 -Wmost -Wno-four-char-constants -Wno-unknown-pragmas -F/Users/joshp/src/supercollider/buildxcode/lang/Release -I/Users/joshp/src/supercollider/buildxcode/lang/Release/include -I/Users/joshp/src/supercollider/include/common -I/Users/joshp/src/supercollider/include/lang -I/Users/joshp/src/supercollider/include/plugin_interface -I/Users/joshp/src/supercollider/lang/LangSource/Bison -I/Users/joshp/src/supercollider/external_libraries/icu -I/Users/joshp/src/supercollider/lang/LangPrimSource/HID_Utilities -I/Users/joshp/src/supercollider/lang/LangPrimSource/WiiMote_OSX -I/Users/joshp/src/supercollider/external_libraries/libsndfile -I/Users/joshp/src/supercollider/buildxcode/lang/SuperCollider.build/libsclang.build/DerivedSources/x86_64 -I/Users/joshp/src/supercollider/buildxcode/lang/SuperCollider.build/libsclang.build/DerivedSources -DNDEBUG -fPIC -fschedule-insns2 -fomit-frame-pointer -ffast-math -fpascal-strings -isystem /Users/joshp/src/supercollider/external_libraries/libsndfile -c /Users/joshp/src/supercollider/lang/LangPrimSource/SC_Speech.M -o /Users/joshp/src/supercollider/buildxcode/lang/SuperCollider.build/libsclang.build/Objects-normal/x86_64/SC_Speech.o | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | |
Relationships |
Notes | |
(0025581) David Cole (manager) 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 (manager) 2011-02-25 17:09 |
Is *.M also commonly expected to compile as objective-c++, and be equivalent to *.mm? |
(0025584) tim blechmann (reporter) 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 (manager) 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 (reporter) 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 (reporter) 2011-03-18 14:13 |
I've never seen nor heard of .M being used for Obj-C++... |
(0030618) David Cole (manager) 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 (administrator) 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. |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2011-02-25 15:45 | tim blechmann | New Issue | |
2011-02-25 17:07 | David Cole | Note Added: 0025581 | |
2011-02-25 17:09 | David Cole | Note Added: 0025582 | |
2011-02-25 17:34 | tim blechmann | Note Added: 0025584 | |
2011-02-25 17:41 | David Cole | Note Added: 0025585 | |
2011-02-25 17:43 | David Cole | Assigned To | => David Cole |
2011-02-25 17:43 | David Cole | Status | new => assigned |
2011-02-26 04:51 | tim blechmann | Note Added: 0025587 | |
2011-03-18 14:13 | Sean McBride | Note Added: 0025821 | |
2012-08-13 15:36 | David Cole | Status | assigned => backlog |
2012-08-13 15:36 | David Cole | Note Added: 0030618 | |
2012-08-13 15:36 | David Cole | Assigned To | David Cole => |
2016-06-10 14:28 | Kitware Robot | Note Added: 0041807 | |
2016-06-10 14:28 | Kitware Robot | Status | backlog => resolved |
2016-06-10 14:28 | Kitware Robot | Resolution | open => moved |
2016-06-10 14:28 | Kitware Robot | Assigned To | => Kitware Robot |
2016-06-10 14:31 | Kitware Robot | Status | resolved => closed |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |