Skip to content

Commit cc91643

Browse files
authored
Merge pull request #19921 from benlangmuir/install-dispatch-sk
Add dependency on the libdispatch-install step
2 parents c71d863 + 98ceebe commit cc91643

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/SourceKit/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
134134
# ensure that we strip out the DESTDIR environment
135135
# from the sub-build
136136
${CMAKE_COMMAND} -E env --unset=DESTDIR ${CMAKE_COMMAND} --build . --target install
137+
STEP_TARGETS
138+
install
137139
BUILD_BYPRODUCTS
138140
<INSTALL_DIR>/lib/${CMAKE_SHARED_LIBRARY_PREFIX}dispatch${CMAKE_SHARED_LIBRARY_SUFFIX}
139141
<INSTALL_DIR>/lib/${CMAKE_IMPORT_LIBRARY_PREFIX}dispatch${CMAKE_IMPORT_LIBRARY_SUFFIX}
@@ -169,6 +171,9 @@ if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
169171
INTERFACE_INCLUDE_DIRECTORIES
170172
${SWIFT_PATH_TO_LIBDISPATCH_SOURCE}/src/BlocksRuntime)
171173

174+
add_dependencies(dispatch libdispatch-install)
175+
add_dependencies(BlocksRuntime libdispatch-install)
176+
172177
swift_install_in_component(sourcekit-inproc
173178
FILES
174179
$<TARGET_FILE:dispatch>

0 commit comments

Comments
 (0)