[CMake] Question about find_library()
Mike Jackson
mike.jackson at bluequartz.net
Thu Mar 26 19:03:45 EDT 2009
MARK_AS_ADVANCED(glFont2_LIBRARIES)
MARK_AS_ADVANCED(glFont2_INCLUDE_DIRS)
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
Robert Dailey wrote:
> 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.
>
More information about the CMake
mailing list