Skip to content

Commit 52fbc59

Browse files
committed
[SwiftFixIt] Fix cmake build of SwiftFixIt module
1 parent e53cfc2 commit 52fbc59

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

Sources/SwiftFixIt/CMakeLists.txt

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# See http://swift.org/LICENSE.txt for license information
77
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
88

9-
add_library(SwiftFixIt STATIC
9+
add_library(SwiftFixIt
1010
SwiftFixIt.swift)
1111
target_link_libraries(SwiftFixIt PUBLIC
1212
Basics
@@ -17,8 +17,14 @@ target_link_libraries(SwiftFixIt PUBLIC
1717
SwiftSyntax::SwiftSyntax
1818

1919
TSCBasic
20-
TSCUtility
21-
)
20+
TSCUtility)
2221

22+
# NOTE(compnerd) workaround for CMake not setting up include flags yet
2323
set_target_properties(SwiftFixIt PROPERTIES
2424
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
25+
26+
install(TARGETS SwiftFixIt
27+
ARCHIVE DESTINATION lib
28+
LIBRARY DESTINATION lib
29+
RUNTIME DESTINATION bin)
30+
set_property(GLOBAL APPEND PROPERTY SwiftPM_EXPORTS SwiftFixIt)

0 commit comments

Comments
 (0)