[Cmake] Hiding Includes

Neil Killeen Neil . Killeen at atnf . csiro . au
Thu, 31 Jul 2003 16:57:10 +1000 (EST)


Hi

when I build my system with gcc 3.1.1  I get a squillion warnings like

Building object file mitkHapticUImain.o...
cc1plus: warning: changing search order for system directory "/usr/local/include"
cc1plus: warning:   as it has already been specified as a non-system directory
cc1plus: warning: changing search order for system directory "/usr/local/gnu/include"
cc1plus: warning:   as it has already been specified as a non-system directory


this is because gcc 3.1.1 implicitly includes these directories
in its include list.  However, CMake is generating Makefiles
which explicitly specify these include locations and this causes
the compiler warning.

Is there any way I can tell CMake not to do this ?  I don't
actually know why CMake is including them (it could be from some
included package like itk or vtk i suppose).

thanks
Neil