Files
conan-build/recipes/libpng/all/conan_cmake_project_include.cmake
Aleksandr Vodyanov 25212f3eed [DO-976] libpng recipe (!5)
Co-authored-by: aleksandr.vodyanov <aleksandr.vodyanov@avroid.tech>
Reviewed-on: https://git.avroid.tech/Conan/conan_build/pulls/5
2024-12-05 18:51:19 +03:00

8 lines
414 B
CMake

# Older versions of libpng's CMakeLists reference the ZLIB_LIBRARy
# varible which was never officially documented.
# This was fixed in which first went into version 1.6.38.
# This can be deleted once the recipe no longer supports versions older than that.
# https://github.com/glennrp/libpng/commit/9f734b13f4ea062af98652c4c7678f667d2d85c7
find_package(ZLIB CONFIG REQUIRED)
set(ZLIB_LIBRARY "${ZLIB_LIBRARIES}")