[tiff] use vcpkg wrapper for all configs, remove dead code (#5584)

* [tiff] use vcpkg wrapper for all configs, remove dead code

* [tiff] update CONTROL
This commit is contained in:
Stefano Sinigardi 2019-03-14 06:51:16 +01:00 committed by Phil Christensen
parent fc9aa15287
commit 0e77ca352e
4 changed files with 22 additions and 34 deletions

View File

@ -1,4 +1,4 @@
Source: tiff Source: tiff
Version: 4.0.10-2 Version: 4.0.10-3
Build-Depends: zlib, libjpeg-turbo, liblzma (!uwp) Build-Depends: zlib, libjpeg-turbo, liblzma (!uwp)
Description: A library that supports the manipulation of TIFF image files Description: A library that supports the manipulation of TIFF image files

View File

@ -1,4 +1,4 @@
The package tiff is compatible with built-in CMake targets: The package tiff is compatible with built-in CMake targets:
find_package(TIFF REQUIRED) find_package(TIFF REQUIRED)
target_link_libraries(main PRIVATE TIFF::TIFF) target_link_libraries(main PRIVATE TIFF::TIFF)

View File

@ -1,20 +1,17 @@
_find_package(${ARGS}) _find_package(${ARGS})
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static") find_package(LibLZMA)
find_package(LibLZMA) find_package(JPEG)
find_package(JPEG) find_package(ZLIB)
find_package(ZLIB) if(TARGET TIFF::TIFF)
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${LIBLZMA_LIBRARIES} JPEG::JPEG ZLIB::ZLIB)
if(TARGET TIFF::TIFF) if(UNIX)
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${LIBLZMA_LIBRARIES} JPEG::JPEG ZLIB::ZLIB) set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES m)
if(UNIX) endif()
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES m) endif()
endif() if(TIFF_LIBRARIES)
endif() list(APPEND TIFF_LIBRARIES ${LIBLZMA_LIBRARIES} ${JPEG_LIBRARIES} ${ZLIB_LIBRARIES})
if(TIFF_LIBRARIES) if(UNIX)
list(APPEND TIFF_LIBRARIES ${LIBLZMA_LIBRARIES} ${JPEG_LIBRARIES} ${ZLIB_LIBRARIES}) list(APPEND TIFF_LIBRARIES m)
if(UNIX) endif()
list(APPEND TIFF_LIBRARIES m) endif()
endif()
endif()
endif()

View File

@ -205,15 +205,6 @@ macro(find_package name)
else() else()
_find_package(${ARGV}) _find_package(${ARGV})
endif() endif()
elseif("${name}" STREQUAL "TIFF" AND EXISTS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include/tiff.h")
_find_package(${ARGV})
find_package(LibLZMA)
if(TARGET TIFF::TIFF)
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${LIBLZMA_LIBRARIES})
endif()
if(TIFF_LIBRARIES)
list(APPEND TIFF_LIBRARIES ${LIBLZMA_LIBRARIES})
endif()
elseif("${name}" STREQUAL "GSL" AND EXISTS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include/gsl") elseif("${name}" STREQUAL "GSL" AND EXISTS "${_VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include/gsl")
_find_package(${ARGV}) _find_package(${ARGV})
if(GSL_FOUND AND TARGET GSL::gsl) if(GSL_FOUND AND TARGET GSL::gsl)