diff --git a/products/libllbuild/CMakeLists.txt b/products/libllbuild/CMakeLists.txt index a821478bf..f7e50d88d 100644 --- a/products/libllbuild/CMakeLists.txt +++ b/products/libllbuild/CMakeLists.txt @@ -51,6 +51,11 @@ install(TARGETS llbuild LIBRARY DESTINATION lib${LLBUILD_LIBDIR_SUFFIX} RUNTIME DESTINATION bin COMPONENT llbuild) +if(MSVC) + install(FILES $/$.pdb + DESTINATION bin + OPTIONAL) +endif() set_property(GLOBAL APPEND PROPERTY LLBuild_EXPORTS llbuild) add_custom_target(install-llbuild diff --git a/products/llbuildSwift/CMakeLists.txt b/products/llbuildSwift/CMakeLists.txt index f3cb10566..9c4765e61 100644 --- a/products/llbuildSwift/CMakeLists.txt +++ b/products/llbuildSwift/CMakeLists.txt @@ -65,6 +65,11 @@ install(TARGETS llbuildSwift ARCHIVE DESTINATION lib/swift/pm/llbuild COMPONENT libllbuildSwift LIBRARY DESTINATION lib/swift/pm/llbuild COMPONENT libllbuildSwift RUNTIME DESTINATION bin COMPONENT libllbuildSwift) +if(MSVC) + install(FILES $/$.pdb + DESTINATION bin + OPTIONAL) +endif() set_property(GLOBAL APPEND PROPERTY LLBuild_EXPORTS llbuildSwift) # Add install target. diff --git a/products/swift-build-tool/CMakeLists.txt b/products/swift-build-tool/CMakeLists.txt index 7ccc9abed..7023120a2 100644 --- a/products/swift-build-tool/CMakeLists.txt +++ b/products/swift-build-tool/CMakeLists.txt @@ -16,6 +16,11 @@ endif() install(TARGETS swift-build-tool COMPONENT swift-build-tool DESTINATION bin) +if(MSVC) + install(FILES $/$.pdb + DESTINATION bin + OPTIONAL) +endif() add_custom_target(install-swift-build-tool DEPENDS swift-build-tool