[cmake-developers] [CMake 0011898]: xcode projects compile objective-c++ files as objective-c

Mantis Bug Tracker mantis at public.kitware.com
Fri Feb 25 15:45:49 EST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=11898 
====================================================================== 
Reported By:                tim blechmann
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11898
Category:                   CMake
Reproducibility:            have not tried
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-02-25 15:45 EST
Last Modified:              2011-02-25 15:45 EST
====================================================================== 
Summary:                    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
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-02-25 15:45 tim blechmann  New Issue                                    
======================================================================




More information about the cmake-developers mailing list