mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-20 17:57:50 +08:00
eb895b95aa
* [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
9 lines
423 B
CMake
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()
|