[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
This commit is contained in:
Aleksandr Vodyanov
2024-12-05 18:51:19 +03:00
parent 4bbce79e03
commit 25212f3eed
9 changed files with 307 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
# 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}")