Files
cmake/Tests/RunCMake/Swift/PackageName.cmake
T
Evan Wilde 94faee3099 Swift: Add option to pass package name to swiftc invocation
Add a `Swift_PACKAGE_NAME` target property to specify the package name.

Fixes: #26886
2026-04-28 15:24:05 -04:00

14 lines
244 B
CMake

cmake_policy(SET CMP0157 NEW)
enable_language(Swift)
add_library(L1 L.swift)
set_target_properties(L1 PROPERTIES
Swift_PACKAGE_NAME "SwiftPackageTest"
)
add_library(L2 L.swift)
set_target_properties(L2 PROPERTIES
Swift_PACKAGE_NAME ""
)