Yes, you got it!!

I was doing include_directories(SYSTEM ....)

Thanks very much.

Neil

2008/7/21 Bill Hoffman <[EMAIL PROTECTED]>:

> 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
>
_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to