[Pkg-cmake-team] Bug#1087550: cmake-data: FindZLIB.cmake fails to populate ZLIB_INCLUDE_DIRS and ZLIB_LIBRARIES

Brad King brad.king at kitware.com
Fri Nov 15 13:48:01 GMT 2024


On Fri, Nov 15, 2024 at 2:45 AM Andrius Merkys wrote:
> find_package(ZLIB REQUIRED)
> Resulting CMakeCache.txt does not contain neither
> ZLIB_INCLUDE_DIRS nor ZLIB_LIBRARIES.

Those are not expected to be in the cache.  FindZLIB
sets them as normal variables that are available to the
caller of `find_package(ZLIB)`.  The cache should have
entries corresponding to individual zlib artifacts, such as
`ZLIB_INCLUDE_DIR` and `ZLIB_LIBRARY_RELEASE`

-Brad



More information about the Pkg-cmake-team mailing list