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()