File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
tools/SourceKit/cmake/modules Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -198,6 +198,13 @@ macro(add_sourcekit_library name)
198
198
COMPONENT "${SOURCEKITLIB_INSTALL_IN_COMPONENT} " )
199
199
set_target_properties (${name} PROPERTIES FOLDER "SourceKit libraries" )
200
200
add_sourcekit_default_compiler_flags ("${name} " )
201
+
202
+ swift_is_installing_component ("${SOURCEKITLIB_INSTALL_IN_COMPONENT} " is_installing )
203
+ if (NOT is_installing )
204
+ set_property (GLOBAL APPEND PROPERTY SWIFT_BUILDTREE_EXPORTS ${name} )
205
+ else ()
206
+ set_property (GLOBAL APPEND PROPERTY SWIFT_EXPORTS ${name} )
207
+ endif ()
201
208
endmacro ()
202
209
203
210
# Add a new SourceKit executable.
@@ -324,7 +331,6 @@ macro(add_sourcekit_framework name)
324
331
endif ()
325
332
endif ()
326
333
327
-
328
334
if (SOURCEKIT_DEPLOYMENT_OS MATCHES "^macosx" )
329
335
set_output_directory (${name}
330
336
BINARY_DIR ${SOURCEKIT_RUNTIME_OUTPUT_INTDIR}
@@ -374,6 +380,14 @@ macro(add_sourcekit_framework name)
374
380
COMMAND ${CMAKE_COMMAND} -E copy "${hdr} " "${framework_location} /Headers/${hdrname} " )
375
381
endforeach ()
376
382
endif ()
383
+
384
+ swift_is_installing_component ("${SOURCEKITFW_INSTALL_IN_COMPONENT} " is_installing )
385
+ if (NOT is_installing )
386
+ set_property (GLOBAL APPEND PROPERTY SWIFT_BUILDTREE_EXPORTS ${name} )
387
+ else ()
388
+ set_property (GLOBAL APPEND PROPERTY SWIFT_EXPORTS ${name} )
389
+ endif ()
390
+
377
391
add_sourcekit_default_compiler_flags ("${name} " )
378
392
endmacro (add_sourcekit_framework )
379
393
You can’t perform that action at this time.
0 commit comments