summaryrefslogtreecommitdiffstats
path: root/Tests/SwiftOnly
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-04-10 13:41:18 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-04-10 13:41:39 (GMT)
commitfbca02163bc981dc34b54bb42f0f64b2a40b3b3f (patch)
tree7e10a26bda0fed9b2a1251e99e280e80a471f9ae /Tests/SwiftOnly
parent236a664c16b99fc0fc7ae21d32b389a8e8fc98c3 (diff)
parent579472d877fb6a953d0d554e05578c17a1974612 (diff)
downloadCMake-fbca02163bc981dc34b54bb42f0f64b2a40b3b3f.zip
CMake-fbca02163bc981dc34b54bb42f0f64b2a40b3b3f.tar.gz
CMake-fbca02163bc981dc34b54bb42f0f64b2a40b3b3f.tar.bz2
Merge topic 'swift-fix-submodule-dependencies'
579472d877 Swift: Ninja: Remove module dependency for executables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9411
Diffstat (limited to 'Tests/SwiftOnly')
-rw-r--r--Tests/SwiftOnly/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tests/SwiftOnly/CMakeLists.txt b/Tests/SwiftOnly/CMakeLists.txt
index 3d2fe73..db7caf9 100644
--- a/Tests/SwiftOnly/CMakeLists.txt
+++ b/Tests/SwiftOnly/CMakeLists.txt
@@ -50,6 +50,9 @@ if(NOT XCODE_VERSION OR XCODE_VERSION VERSION_GREATER_EQUAL 9.0)
set_target_properties(O PROPERTIES Swift_COMPILATION_MODE "incremental")
endif()
+add_library(P L.swift)
+add_dependencies(P SwiftOnly)
+
# Dummy to make sure generation works with such targets.
add_library(SwiftIface INTERFACE)
target_link_libraries(SwiftOnly PRIVATE SwiftIface)