Update CMakeLists.txt

This commit is contained in:
tooomm 2025-05-29 23:33:53 +02:00 committed by GitHub
parent c40abb3918
commit b64ef36e43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -321,13 +321,13 @@ elseif(WIN32)
# 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")
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()
# 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)