From f13cc18501452b780a5e2b2841d88f362601d1d3 Mon Sep 17 00:00:00 2001 From: Cloud Date: Thu, 20 Aug 2026 20:52:18 +0800 Subject: [PATCH] fix: install DLL to bin directory on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Separate install destinations for LIBRARY, ARCHIVE and RUNTIME to ensure DLL files are installed to the bin directory on Windows instead of lib. fix: Windows 平台 DLL 安装到 bin 目录 分离 LIBRARY、ARCHIVE 和 RUNTIME 的安装路径,确保 Windows 平台的 DLL 文件安装到 bin 目录而非 lib 目录。 --- src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a77a19b71..288ef2060 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -113,7 +113,9 @@ set_target_properties(${LIB_NAME} install( TARGETS ${LIB_NAME} EXPORT ${DtkWidget}Targets - DESTINATION ${LIBRARY_INSTALL_DIR} + LIBRARY DESTINATION ${LIBRARY_INSTALL_DIR} + ARCHIVE DESTINATION ${LIBRARY_INSTALL_DIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} PUBLIC_HEADER DESTINATION ${INCLUDE_INSTALL_DIR} )