vcpkg/ports/liblzma/build-tools.patch
Kai Pastor 8d59cb32d2
[liblzma] Update wrapper, add feature tools (#24708)
* Fix liblzma wrapper for older CMake

* Add feature for tools

* Update versions

* Test find_package(... REQUIRED)
2022-05-17 16:53:40 -07:00

19 lines
618 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index cddbccb..63c8f3d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -492,6 +492,7 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/liblzmaConfig.cmake"
COMPONENT liblzma_Development)
+if(BUILD_TOOLS)
#############################################################################
# getopt_long
#############################################################################
@@ -663,3 +664,4 @@ if(NOT MSVC AND HAVE_GETOPT_LONG)
DESTINATION "${CMAKE_INSTALL_MANDIR}/man1"
COMPONENT xz)
endif()
+endif()
\ No newline at end of file