[CMake] Question about find_library()

Robert Dailey rcdailey at gmail.com
Thu Mar 26 18:52:32 EDT 2009


First of all, I've created a find module called FindglFont2.cmake. Below are
the contents:
find_path( glFont2_INCLUDE_DIRS glfont2.h )
find_library( glFont2_LIBRARIES NAMES glfont2 )

set( glFont2_FOUND FALSE )
if( glFont2_LIBRARIES AND glFont2_INCLUDE_DIRS )
  set( glFont2_FOUND TRUE )
endif()

When the library and header files are found, the two variables above
(glFont2_INCLUDE_DIRS and glFont2_LIBRARIES) are stored in the public
section of the cache. Is there any way to force these to be stored via
"INTERNAL"? This way they do not show up in the "Simple View" in the
cmake-gui.

Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090326/7092ed48/attachment.htm>


More information about the CMake mailing list