[CMake] Changes to how CMAKE_INCLUDE_PATH / CMAKE_LIBRARY_PATH function in 2.6.x

Philip Lowman philip at yhbt.com
Sun Nov 16 16:46:40 EST 2008


I noticed local CMake variables for CMAKE_INCLUDE_PATH and
CMAKE_LIBRARY_PATH no longer work in CMake 2.6.x.  It appears the
documentation has been changed to require these to be CACHE variables.

First of all, why the change in behavior?  Shouldn't a locally specified
CMAKE_INCLUDE_PATH variable trump any cache specified version just like in
CMake 2.4.x?
Second of all, CMAKE_PREFIX_PATH seems to work fine as a local variable.
Why the discrepency?

The use case here is to allow the user to specify a cache variable for a
package that has tons of libraries and then to use that cache variable to
manipulate CMAKE_PREFIX_PATH (or CMAKE_INCLUDE_PATH / CMAKE_LIBRARY_PATH) to
effect the detection of the libraries.

-- 
Philip Lowman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081116/1f215091/attachment.htm>


More information about the CMake mailing list