From d599665f6900ba73b9ff675da9eb2ff03de393f3 Mon Sep 17 00:00:00 2001 From: ZephZae <116720216+thezephyrsong@users.noreply.github.com> Date: Wed, 17 Jun 2026 12:19:52 +1000 Subject: [PATCH] Refactor DLL installation for Windows deployment --- CMakeLists.txt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ca6453..17bb6b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -147,7 +147,6 @@ install(TARGETS GitAddonsManager ) if(WIN32) - # Run windeployqt and capture its output into the install tree find_program(WINDEPLOYQT windeployqt HINTS "${CMAKE_PREFIX_PATH}/bin") install(CODE " execute_process( @@ -156,12 +155,10 @@ if(WIN32) \"\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}/GitAddonsManager.exe\" ) ") - install(FILES - C:/vcpkg/installed/x64-windows/bin/git2.dll - C:/vcpkg/installed/x64-windows/bin/zlib1.dll - C:/vcpkg/installed/x64-windows/bin/pcre2-8.dll - DESTINATION ${CMAKE_INSTALL_BINDIR} - ) + install(CODE " + file(GLOB VCPKG_DLLS \"C:/vcpkg/installed/x64-windows/bin/*.dll\") + file(INSTALL \${VCPKG_DLLS} DESTINATION \"\${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}\") + ") endif() if(NOT WIN32)