[Cmake] gcc "Changing search order for system directory" warning

Parag Chandra pchandra at radonc.unc.edu
Thu Apr 10 13:23:14 EDT 2003


Hi all,

I've been using CMake for a while, dutifully upgrading to the latest version as needed in order to compile VTK and ITK. On Linux, once I upgraded to 1.6.6, I started noticing a slew of warnings of the type:

cc1plus: warning: changing search order for system directory "/usr/local/include"
cc1plus: warning:   as it has already been specified as a non-system directory

Is there any way to disable this warning? I don't remember seeing it previously, but I've just upgraded ITK, VTK, and CMake to the latest release versions. I've searched, and it seems like people have been complaining about this particular 'feature' of gcc for months, but the only way to disable it is to disable all warnings. Alternatively, what has changed in CMake that's causing the makefiles it generates to manually add "-I/usr/local/include"? I thought this directory was 'automatically' in the list of -I's, so there was no need to put it in there yourself? Thanks for any help.

Best regards,
-Parag Chandra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20030410/596c824a/attachment.html>


More information about the CMake mailing list