File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ function(add_swift_syntax_library name)
130
130
endif ()
131
131
endif ()
132
132
133
- if (PROJECT_IS_TOP_LEVEL )
133
+ if (PROJECT_IS_TOP_LEVEL OR SWIFT_SYNTAX_INSTALL_TARGETS )
134
134
# Install this target
135
135
install (TARGETS ${name}
136
136
EXPORT SwiftSyntaxTargets
@@ -148,4 +148,5 @@ function(add_swift_syntax_library name)
148
148
else ()
149
149
set_property (GLOBAL APPEND PROPERTY SWIFT_EXPORTS ${name} )
150
150
endif ()
151
+ add_library (SwiftSyntax::${name} ALIAS ${name} )
151
152
endfunction ()
Original file line number Diff line number Diff line change 1
- if (PROJECT_IS_TOP_LEVEL )
1
+ if (PROJECT_IS_TOP_LEVEL OR SWIFT_SYNTAX_INSTALL_TARGETS )
2
2
export (EXPORT SwiftSyntaxTargets
3
3
FILE ${CMAKE_CURRENT_BINARY_DIR} /SwiftSyntaxConfig.cmake
4
4
NAMESPACE SwiftSyntax:: )
You can’t perform that action at this time.
0 commit comments