mirror of
https://github.com/cemu-project/vcpkg.git
synced 2024-11-23 19:29:49 +00:00
* Fix find_package(libpng CONFIG) * Fix typos
This commit is contained in:
parent
9e68729bb6
commit
dc61560b9e
@ -1,5 +1,5 @@
|
||||
Source: libpng
|
||||
Version: 1.6.37-2
|
||||
Version: 1.6.37-3
|
||||
Build-Depends: zlib
|
||||
Homepage: https://github.com/glennrp/libpng
|
||||
Description: libpng is a library implementing an interface for reading and writing PNG (Portable Network Graphics) format files.
|
||||
|
6
ports/libpng/libpngConfig.cmake
Normal file
6
ports/libpng/libpngConfig.cmake
Normal file
@ -0,0 +1,6 @@
|
||||
# The upstream CMakeLists.txt exports libpng's targets to a file named `libpng16.cmake`.
|
||||
# However, `find_package(libpng CONFIG)` expects a file named `libpngConfig.cmake` to exist instead.
|
||||
#
|
||||
# By including `libpng.cmake` from this file, `find_package(libpng CONFIG)` will work.
|
||||
get_filename_component(_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
||||
include("${_DIR}/libpng16.cmake")
|
@ -46,6 +46,7 @@ endif()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/libpng)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share/)
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/libpngConfig.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/libpng)
|
||||
|
||||
file(COPY ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/libpng)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/libpng/LICENSE ${CURRENT_PACKAGES_DIR}/share/libpng/copyright)
|
||||
|
Loading…
Reference in New Issue
Block a user