2022-03-01 02:25:31 +08:00
|
|
|
diff --git a/CMake/FindLZMA.cmake b/CMake/FindLZMA.cmake
|
|
|
|
index 0c8c794..796558c 100644
|
|
|
|
--- a/CMake/FindLZMA.cmake
|
|
|
|
+++ b/CMake/FindLZMA.cmake
|
2022-03-16 03:46:27 +08:00
|
|
|
@@ -1,3 +1,11 @@
|
2022-03-01 02:25:31 +08:00
|
|
|
+find_package(LibLZMA)
|
|
|
|
+set(LZMA_INCLUDE_DIR "${LIBLZMA_INCLUDE_DIR}" CACHE INTERNAL "")
|
|
|
|
+set(LZMA_LIBRARY "${LIBLZMA_LIBRARIES}" CACHE INTERNAL "")
|
|
|
|
+if(NOT TARGET LZMA::LZMA)
|
2022-03-16 03:46:27 +08:00
|
|
|
+ add_library(LZMA::LZMA INTERFACE IMPORTED)
|
|
|
|
+ target_link_libraries(LZMA::LZMA INTERFACE LibLZMA::LibLZMA)
|
2022-03-01 02:25:31 +08:00
|
|
|
+endif()
|
|
|
|
+
|
|
|
|
find_path(LZMA_INCLUDE_DIR
|
|
|
|
NAMES lzma.h
|
|
|
|
DOC "lzma include directory")
|