Skip to content

Commit 2ae2fee

Browse files
authored
Merge pull request #39270 from akyrtzi/cmake-sourcekit-module-map-depend
[AddSwiftSourceKit.cmake] Add dependency to the module map file due to the custom pre-build command
2 parents 15f96ad + fcad380 commit 2ae2fee

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/SourceKit/cmake/modules/AddSwiftSourceKit.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@ macro(add_sourcekit_framework name)
238238

239239
if(SOURCEKITFW_MODULEMAP)
240240
set(modulemap "${CMAKE_CURRENT_SOURCE_DIR}/${SOURCEKITFW_MODULEMAP}")
241+
set_property(TARGET ${name} APPEND PROPERTY LINK_DEPENDS "${modulemap}")
241242
if (SOURCEKIT_DEPLOYMENT_OS MATCHES "^macosx")
242243
set(modules_dir "${framework_location}/Versions/A/Modules")
243244
add_custom_command(TARGET ${name} PRE_BUILD

0 commit comments

Comments
 (0)