mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-12 17:29:02 +08:00
0707a17ecf
* Restore upstream's DLL name * Don't add debug postfix * Decouple wrapper from config * Don't inject Find module stuff into config * Cleanup * [skip actions] Trim lzmad and LibLZMA patching * [skip actions] Fix CMAKE_DISABLE_FIND_PACKAGE_LibLZMA * [skip actions] CI * Update manifests * Update versions * Backfill LibLZMA::LibLZMA to CMake < 3.14 * Update versions * Update versions
16 lines
472 B
Diff
16 lines
472 B
Diff
diff --git a/CMake/FindLZMA.cmake b/CMake/FindLZMA.cmake
|
|
index 0c8c794..796558c 100644
|
|
--- a/CMake/FindLZMA.cmake
|
|
+++ b/CMake/FindLZMA.cmake
|
|
@@ -1,3 +1,10 @@
|
|
+find_package(LibLZMA)
|
|
+set(LZMA_INCLUDE_DIR "${LIBLZMA_INCLUDE_DIR}" CACHE INTERNAL "")
|
|
+set(LZMA_LIBRARY "${LIBLZMA_LIBRARIES}" CACHE INTERNAL "")
|
|
+if(NOT TARGET LZMA::LZMA)
|
|
+ add_library(LZMA::LZMA ALIAS LibLZMA::LibLZMA)
|
|
+endif()
|
|
+
|
|
find_path(LZMA_INCLUDE_DIR
|
|
NAMES lzma.h
|
|
DOC "lzma include directory")
|