[CMake] CMAKE_CXX_COMPILER: problem setting

Steven Van Ingelgem steven at vaningelgem.be
Mon Nov 19 17:29:11 EST 2007


Hi Bill,


I found the reason, but I have no idea why:
in the unix makefiles on mac it uses -isystem to include the
directories (as it does on a Linux), but for XCode it uses -I. And
with -isystem it gives problems, but if I change those calls in
flags.make to -I, it works like a charm...


Maybe you can help me a little further with that?


Thanks!



On 11/10/07, Steven Van Ingelgem <steven at vaningelgem.be> wrote:
> The XCode project works perfectly (except for the target "PACKAGE",
> but that I still need to work a little on myself first). But at least
> I am able to build it in both Release & Debug mode.
>
>
> Makefiles:
> /usr/bin/c++   -O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch
> i386 -arch ppc  -D__WXMAC__ -isystem
> /usr/lib/wx/include/mac-unicode-release-static-2.9 -isystem /
> usr/include/wx-2.9   -D_STLP_USE_STATIC_LIB -D_FILE_OFFSET_BITS=64
> -D_LARGE_FILES -D__WXMAC__ -o CMakeFiles/WebAztec.dir/MyApp.o -c
> /Users/steven/WebAztec/MyApp.cpp
>
>
> XCode:
>    /usr/bin/gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs
> -fpascal-strings -fasm-blocks -g -O1 -DCMAKE_INTDIR=\"Debug\"
> -fmessage-length=0 -Wmost -Wno-four-char-constants
> -Wno-unknown-pragmas -O -mdynamic-no-pic
> -F/Users/steven/WebAztec/bin/Debug
> -I/Users/steven/WebAztec/bin/Debug/include
> -I/usr/lib/wx/include/mac-unicode-release-static-2.9
> -I/usr/include/wx-2.9
> -I/Users/steven/WebAztec/bin/WebAztec.build/Debug/WebAztec.build/DerivedSources
> -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc
> -D__WXMAC__ -g -D_STLP_USE_STATIC_LIB -D_FILE_OFFSET_BITS=64
> -D_LARGE_FILES -D__WXMAC__ -c /Users/steven/WebAztec/MyApp.cpp -o
> /Users/steven/WebAztec/bin/WebAztec.build/Debug/WebAztec.build/Objects-normal/i386/MyApp.o
>
>
> To my eyes those two lines are completely different :S, but maybe you know more?
>
>
>
> Thanks
>
>
>
> On 11/10/07, Bill Hoffman <bill.hoffman at kitware.com> wrote:
> > Steven Van Ingelgem wrote:
> > > Hi Bill,
> > >
> > >
> > > You could find more info here as I wrongly submitted it to the
> > > wxWidgets mailinglist:
> > > http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?5:sss:94148:200711:hfdpjonhlifnhdjlgfff#b
> > >
> > > However if you would need more information, I'm always happy to test out stuff!
> > >
> > >
> > > BTW, why am I replying to you alone and not to the list? :-)
> > > You should add a header 'reply-to' in the mailinglist fields.
> > >
> > >
> > The cmake is defaulted to reply to sender to avoid embarrassing opps
> > emails.   I am redirecting the conversation to the cmake list.
> >
> > Can you compare the compile line from CMake and Xcode?
> >
> > To see the compile line in CMake, you do this:
> >
> > make VERBOSE=1
> >
> > Also, does the Xcode project generated by CMake work?
> >
> > -Bill
> >
>


More information about the CMake mailing list