diff --git a/tools/SourceKit/CMakeLists.txt b/tools/SourceKit/CMakeLists.txt index e593133d6e32e..067643e3c0eaa 100644 --- a/tools/SourceKit/CMakeLists.txt +++ b/tools/SourceKit/CMakeLists.txt @@ -134,6 +134,8 @@ if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin") # ensure that we strip out the DESTDIR environment # from the sub-build ${CMAKE_COMMAND} -E env --unset=DESTDIR ${CMAKE_COMMAND} --build . --target install + STEP_TARGETS + install BUILD_BYPRODUCTS /lib/${CMAKE_SHARED_LIBRARY_PREFIX}dispatch${CMAKE_SHARED_LIBRARY_SUFFIX} /lib/${CMAKE_IMPORT_LIBRARY_PREFIX}dispatch${CMAKE_IMPORT_LIBRARY_SUFFIX} @@ -169,6 +171,9 @@ if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin") INTERFACE_INCLUDE_DIRECTORIES ${SWIFT_PATH_TO_LIBDISPATCH_SOURCE}/src/BlocksRuntime) + add_dependencies(dispatch libdispatch-install) + add_dependencies(BlocksRuntime libdispatch-install) + swift_install_in_component(sourcekit-inproc FILES $