[Cmake] Hiding Includes
Brad King
brad . king at kitware . com
Thu, 31 Jul 2003 10:59:43 -0400 (EDT)
> 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).
The only "automatic" include directory is supposed to be /usr/include,
which is removed by CMake. For some reason your platform is adding
non-standard include locations automatically. Right now there is no way
to tell cmake to know add a -I for a specific path. A work-around until
we resolve this issue is to change all instances of /usr/local/include in
your project's CMakeCache.txt file to /usr/include. Then CMake will
remove the -I for the directory, but the headers will still be found
because the compiler automatically looks in /usr/local/include.
-Brad