File tree Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Expand file tree Collapse file tree 4 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -22,3 +22,8 @@ set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
22
22
set (CMAKE_MACOSX_RPATH YES )
23
23
24
24
add_subdirectory (Sources )
25
+
26
+ export (EXPORT SwiftSyntaxTargets
27
+ FILE "${CMAKE_CURRENT_BINARY_DIR} /cmake/SwiftSyntaxTargets.cmake"
28
+ NAMESPACE SwiftSyntax::
29
+ )
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ set_target_properties(SwiftDiagnostics PROPERTIES
22
22
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY} )
23
23
24
24
install (TARGETS SwiftDiagnostics
25
+ EXPORT SwiftSyntaxTargets
25
26
ARCHIVE DESTINATION lib
26
27
LIBRARY DESTINATION lib
27
28
RUNTIME DESTINATION bin )
Original file line number Diff line number Diff line change @@ -37,15 +37,12 @@ target_link_libraries(SwiftParser PUBLIC
37
37
38
38
set_property (GLOBAL APPEND PROPERTY SWIFTSYNTAX_EXPORTS SwiftParser )
39
39
40
- # Rename the installed library to avoid clashing with the C++
41
- # "libswiftParser" on case-insensitive file systems.
42
- set_target_properties (SwiftParser PROPERTIES OUTPUT_NAME "SwiftSwiftParser" )
43
-
44
40
# NOTE: workaround for CMake not setting up include flags yet
45
41
set_target_properties (SwiftParser PROPERTIES
46
42
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY} )
47
43
48
44
install (TARGETS SwiftParser
45
+ EXPORT SwiftSyntaxTargets
49
46
ARCHIVE DESTINATION lib
50
47
LIBRARY DESTINATION lib
51
48
RUNTIME DESTINATION bin )
Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ set_target_properties(SwiftSyntax PROPERTIES
62
62
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY} )
63
63
64
64
install (TARGETS SwiftSyntax
65
+ EXPORT SwiftSyntaxTargets
65
66
ARCHIVE DESTINATION lib
66
67
LIBRARY DESTINATION lib
67
68
RUNTIME DESTINATION bin )
You can’t perform that action at this time.
0 commit comments