vcpkg/ports/liblzma/vcpkg-cmake-wrapper.cmake
Alexander Neumann eb895b95aa
[liblzma] use upstream CMakeLists.txt + Add pkgconfig. (#14615)
* [liblzma] use upstream CMakeLists.txt + Add pkgconfig.

* fixing regressions

* add debug suffix. fix pkgconfig

* fix cmake path

* remove empty lines

* fix wrapper

* more fixes

* fix findLibLZMA

* fix patch for static builds
2020-11-20 12:23:19 -08:00

9 lines
423 B
CMake

list(REMOVE_ITEM ARGS "NO_MODULE")
list(REMOVE_ITEM ARGS "CONFIG")
list(REMOVE_ITEM ARGS "MODULE") # Always call CONFIG.
_find_package(${ARGS} CONFIG)
if(NOT TARGET LibLZMA::LibLZMA AND TARGET liblzma::liblzma)
add_library(LibLZMA::LibLZMA INTERFACE IMPORTED) # Too lazy to fix wrong target usage all over vcpkg.
set_target_properties(LibLZMA::LibLZMA PROPERTIES INTERFACE_LINK_LIBRARIES liblzma::liblzma)
endif()