mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
Add a `Swift_PACKAGE_NAME` target property to specify the package name. Fixes: #26886
14 lines
244 B
CMake
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 ""
|
|
)
|