vcpkg/ports/libpng/vcpkg-cmake-wrapper.cmake
Kai Pastor 86aed649b3
[libpng] Fix find_package debug libraries (#25200)
* [cmake-user] Extend check for release vs. debug libs

* Add wrapper for PNG

* Update versions
2022-06-13 16:25:35 -07:00

4 lines
319 B
CMake

find_library(PNG_LIBRARY_RELEASE NAMES png16 libpng16 NAMES_PER_DIR PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/lib" NO_DEFAULT_PATH)
find_library(PNG_LIBRARY_DEBUG NAMES png16d libpng16d NAMES_PER_DIR PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/debug/lib" NO_DEFAULT_PATH)
_find_package(${ARGS})