[CMake] Query about FindXXX files
Christian Ehrlicher
Ch.Ehrlicher at gmx.de
Wed Sep 17 11:11:24 EDT 2008
Leo Breebaart schrieb:
> In CMake 2.6.1, the header for FindTIFF.cmake says:
>
> # This module defines
> # TIFF_INCLUDE_DIR, where to find tiff.h, etc.
> # TIFF_LIBRARIES, libraries to link against to use TIFF.
> # TIFF_FOUND, If false, do not try to use TIFF.
> # also defined, but not for general use are
> # TIFF_LIBRARY, where to find the TIFF library.
>
> However, after executing:
>
> FIND_PACKAGE(TIFF)
>
> my CMakeCache.txt now has the following entries:
>
> TIFF_INCLUDE_DIR:PATH=/usr/include
> TIFF_LIBRARY:FILEPATH=/usr/lib/libtiff.so
>
> So, in other words, the "not for general use" TIFF_LIBRARY
> variable is placed in my cache, while the promised TIFF_LIBRARIES
> variable is not.
>
Is there a reason why you want to have the other vars in CMakeCache.txt?
Isn't it enough to have them available?
Christian
More information about the CMake
mailing list