From 69e594fae95dba163b7a6d10dbebea95f57d6232 Mon Sep 17 00:00:00 2001 From: Charles Zablit Date: Wed, 6 May 2026 16:15:16 +0100 Subject: [PATCH] [windows] add PDB files to install target --- cmake/modules/SwiftSupport.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/modules/SwiftSupport.cmake b/cmake/modules/SwiftSupport.cmake index 113f422a2..eed596536 100644 --- a/cmake/modules/SwiftSupport.cmake +++ b/cmake/modules/SwiftSupport.cmake @@ -94,6 +94,11 @@ function(_install_target module) endif() install(TARGETS ${module}) + if(MSVC AND NOT type STREQUAL STATIC_LIBRARY) + install(FILES $/$.pdb + DESTINATION ${CMAKE_INSTALL_BINDIR} + OPTIONAL) + endif() if(type STREQUAL EXECUTABLE) return() endif()