From 034f238e32cfb6001b62db81c5439ddb56ea8488 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Sun, 23 Nov 2025 05:09:54 -0800 Subject: [PATCH] Plugins: install DLL to `bin`, import library to `lib` Adjust the install rules to account for the different installation expectations on Windows. DLL files are installed into the `bin` and import libraries are to be installed in `lib`. --- Sources/SwiftSourceKitClientPlugin/CMakeLists.txt | 5 ++++- Sources/SwiftSourceKitPlugin/CMakeLists.txt | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Sources/SwiftSourceKitClientPlugin/CMakeLists.txt b/Sources/SwiftSourceKitClientPlugin/CMakeLists.txt index 002937493..ed09f9657 100644 --- a/Sources/SwiftSourceKitClientPlugin/CMakeLists.txt +++ b/Sources/SwiftSourceKitClientPlugin/CMakeLists.txt @@ -17,4 +17,7 @@ target_link_libraries(SwiftSourceKitClientPlugin PRIVATE SwiftSourceKitPluginCommon $<$>:FoundationXML>) -install(TARGETS SwiftSourceKitClientPlugin DESTINATION lib) +install(TARGETS SwiftSourceKitClientPlugin + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib + RUNTIME DESTINATION bin) diff --git a/Sources/SwiftSourceKitPlugin/CMakeLists.txt b/Sources/SwiftSourceKitPlugin/CMakeLists.txt index 4d45a1360..ece027b36 100644 --- a/Sources/SwiftSourceKitPlugin/CMakeLists.txt +++ b/Sources/SwiftSourceKitPlugin/CMakeLists.txt @@ -50,4 +50,7 @@ target_link_libraries(SwiftSourceKitPlugin PRIVATE SwiftToolsProtocols::_ToolsProtocolsSwiftExtensionsForPlugin $<$>:FoundationXML>) -install(TARGETS SwiftSourceKitPlugin DESTINATION lib) +install(TARGETS SwiftSourceKitPlugin + ARCHIVE DESTINATION lib + LIBRARY DESTINATION lib + RUNTIME DESTINATION bin)