mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 16:50:19 +08:00
3eeaf564d1
* [libgeotiff] fix compile on linux Fix cmake libtiff functions detetion failure caused by finding no functions in libm. Signed-off-by: Hiroshi Miura <miurahr@linux.com> * [libgeotiff] fix utility binary handling in linux Signed-off-by: Hiroshi Miura <miurahr@linux.com> * [tiff] Fix static transitive dependencies * [libgeotiff] Fix .dll and .exe manipulation * [leptonica] Find dependencies in installed cmake config file * [tiff] Do not add cmake targets to TIFF_LIBRARIES * [tiff] Link consumers against m on unix platforms
25 lines
731 B
CMake
25 lines
731 B
CMake
_find_package(${ARGS})
|
|
|
|
if("@VCPKG_LIBRARY_LINKAGE@" STREQUAL "static")
|
|
set(TIFF_EXTRA_LIBRARIES)
|
|
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
|
find_package(LibLZMA)
|
|
list(APPEND TIFF_EXTRA_LIBRARIES ${LIBLZMA_LIBRARIES})
|
|
endif()
|
|
|
|
find_package(JPEG)
|
|
list(APPEND TIFF_EXTRA_LIBRARIES ${JPEG_LIBRARIES})
|
|
|
|
find_package(ZLIB)
|
|
|
|
if(TARGET TIFF::TIFF)
|
|
set_property(TARGET TIFF::TIFF APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${TIFF_EXTRA_LIBRARIES} ZLIB::ZLIB)
|
|
endif()
|
|
if(TIFF_LIBRARIES)
|
|
list(APPEND TIFF_LIBRARIES ${TIFF_EXTRA_LIBRARIES} ${ZLIB_LIBRARIES})
|
|
if(UNIX)
|
|
list(APPEND TIFF_LIBRARIES m)
|
|
endif()
|
|
endif()
|
|
endif()
|