Swift_PACKAGE_NAME
Added in version 4.4.
Specify the Swift package name for a target.
This property sets the package name passed to the Swift compiler via the -package-name flag, which enables the package access control in Swift code.
Note
Package access control was added in Swift 5.8 and Xcode 15. This target property has no effect when using an earlier version of Swift or Xcode.
If the property is not set, the PROJECT_NAME variable is used as the default package name. See policy CMP0216.
Setting this property to the empty string will result in the target being compiled without a package name.
© 2000–2026 Kitware, Inc. and Contributors
Licensed under the BSD 3-clause License.
https://cmake.org/cmake/help/latest/prop_tgt/Swift_PACKAGE_NAME.html