mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 12:49:50 -05:00
c659808626
Fix a bug in the split build model where we generate a dependency on the swiftmodule of a target that does not emit a swiftmodule. This fix drops the erroneous swiftmodule dependency edge, avoiding the broken dependency graph. Incremental builds still work with the new model because of the swiftmodule dependency edges between Swift compilation steps. Fixes: #26922
11 lines
222 B
CMake
11 lines
222 B
CMake
cmake_policy(SET CMP0157 NEW)
|
|
cmake_policy(SET CMP0195 NEW)
|
|
|
|
enable_language(Swift C)
|
|
|
|
add_library(L L.swift)
|
|
add_library(C C.c)
|
|
target_link_libraries(C PRIVATE L)
|
|
add_library(E E.swift)
|
|
target_link_libraries(E PRIVATE C)
|