[CMake] CMake Modules
Brad King
brad.king at kitware.com
Fri Sep 8 10:23:50 EDT 2006
frederic heem wrote:
> According to cmake template FindPACKAGE.cmake
> (http://cmake-modules.googlecode.com/svn/trunk/Templates/FindPACKAGE.cmake)
FYI, this is not an official CMake module repository, nor has a CMake
developer looked at these modules in detail.
> Can someone explain why the include directory is not cached whereas the
> library is cached and internal:
>
> SET(<PACKAGE>_INCLUDE_DIRS ${<PACKAGE>_INCLUDE_DIR})
> SET(<PACKAGE>_LIBRARIES ${<PACKAGE>_LIBRARY} CACHE INTERNAL "The libraries
> for <PACKAGE>")
The <PACKAGE>_LIBRARIES should not be cached. Only the values that
actually might need to be set by the user through ccmake or CMakeSetup
should be cached.
-Brad
More information about the CMake
mailing list