[CMake] issue 7215

Bill Hoffman bill.hoffman at kitware.com
Mon Jul 21 22:26:48 EDT 2008


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


More information about the CMake mailing list