[CMake] issue 7215
Neil Girdhar
mistersheik at gmail.com
Mon Jul 21 22:30:56 EDT 2008
Yes, you got it!!
I was doing include_directories(SYSTEM ....)
Thanks very much.
Neil
2008/7/21 Bill Hoffman <bill.hoffman at kitware.com>:
> Neil Girdhar wrote:
>
>> Hi again Bill,
>>
>> I ran "make >a.txt 2>b.txt" and attached the output.
>>
>>
> I think I see the problem. You have to figure out where the -isystem is
> coming from. Your compile line looks like this:
>
> [ 1%] Building CXX object ui/CMakeFiles/ui.dir/frame.cc.o
> cd /Users/wizard/Desktop/nn/src/ui && /usr/bin/c++ -DQT_DLL -DQT_GUI_LIB
> -DQT_CORE_LIB -DQT_DLL -isystem /opt/local/include/qt4-mac -isystem
> /opt/local/include/qt4-mac/QtGui -isystem /opt/local/include/qt4-mac/QtCore
> -isystem /opt/local/include -isystem /opt/local/include/qt4-mac/phonon
> -isystem /opt/local/include/qt4-mac/QtXmlPatterns -isystem
> /opt/local/include/qt4-mac/QtWebKit -isystem
>
>
> CMake does not add that by default to any project, so it must be in your
> projects CMakeLists.txt files somewhere. This causes the mac to turn c++
> header files into C files I think...
>
> To test the theory, you could copy the compile line in your b.txt file and
> remove the -isystem stuff by hand, or you could figure out where it came
> from.
>
> -Bill
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080721/9fb140c1/attachment.htm>
More information about the CMake
mailing list