From 219778c5a1016328fbc1e9ceaf6c364702064c7c Mon Sep 17 00:00:00 2001 From: tooomm Date: Thu, 29 May 2025 22:36:26 +0200 Subject: [PATCH] Update CMakeLists.txt --- CMakeLists.txt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0282f2d57..9c4dd83f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -319,7 +319,15 @@ elseif(WIN32) # Include liblzma.dll into the package # install(FILES "${CMAKE_SOURCE_DIR}/vcpkg_installed/x64-windows/bin/liblzma.dll" DESTINATION ./) - install(FILES "${CMAKE_SOURCE_DIR}/vcpkg_installed/x64-windows/bin/liblzma.dll" DESTINATION "bin") + # install(FILES "${CMAKE_SOURCE_DIR}/vcpkg_installed/x64-windows/bin/liblzma.dll" DESTINATION "bin") + + set(LIBLZMA_DLL "${CMAKE_SOURCE_DIR}/vcpkg_installed/x64-windows/bin/liblzma.dll") + + if(EXISTS "${LIBLZMA_DLL}") + install(FILES "${LIBLZMA_DLL}" DESTINATION ./) + else() + message(WARNING "liblzma.dll not found at ${LIBLZMA_DLL}, skipping DLL install.") + endif() # Make sure vcpkg's toolchain is in use and lzma is available as a target # find_package(lzma CONFIG REQUIRED)