mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 04:19:08 +08:00
[giflib] use a vcpkg wrapper for cmake to circumvent bad cmake integrated module (#22141)
* [giflib] create wrapper to circumvent cmake module problems with giflib v5 * [giflib] fix references * [giflib] remove unnecessary REQUIRED tags * [giflib] fix references * reduce wrapper to the minimum * fix references
This commit is contained in:
parent
8d968a76e8
commit
772fe6cbce
@ -29,4 +29,6 @@ vcpkg_cmake_configure(
|
||||
vcpkg_cmake_install()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(COPY ${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake DESTINATION ${CURRENT_PACKAGES_DIR}/share/gif)
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
|
3
ports/giflib/vcpkg-cmake-wrapper.cmake
Normal file
3
ports/giflib/vcpkg-cmake-wrapper.cmake
Normal file
@ -0,0 +1,3 @@
|
||||
find_path(GIF_INCLUDE_DIR gif_lib.h PATH_SUFFIXES include PATHS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}" NO_DEFAULT_PATH)
|
||||
|
||||
_find_package(${ARGS})
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "giflib",
|
||||
"version": "5.2.1",
|
||||
"port-version": 1,
|
||||
"description": "A library for reading and writing gif images.",
|
||||
"homepage": "https://sourceforge.net/projects/giflib/",
|
||||
"dependencies": [
|
||||
|
@ -2438,7 +2438,7 @@
|
||||
},
|
||||
"giflib": {
|
||||
"baseline": "5.2.1",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"ginkgo": {
|
||||
"baseline": "1.4.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "14178ec83d76a40e314adcf9bba75b63e99bc56d",
|
||||
"version": "5.2.1",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "7cfc37d67d8662dd5fa5bf698a61ebbd657060cc",
|
||||
"version": "5.2.1",
|
||||
|
Loading…
Reference in New Issue
Block a user