CMP0226ΒΆ

Added in version 4.5.

Apply Swift module name to targets when using the Xcode generator.

This policy ensures that the module name specified in Swift_MODULE_NAME is applied to the target when using the Xcode generator.

The OLD behavior for this policy builds the Swift target with the target name as the module name. Setting Swift_MODULE_NAME has no effect on the compilation of targets.

The NEW behavior applies custom Swift module names specified with the Swift_MODULE_NAME target property, if one is specified.

This policy was introduced in CMake version 4.5. It may be set by cmake_policy() or cmake_minimum_required(). If it is not set, CMake warns, and uses OLD behavior.

Note

The OLD behavior of a policy is deprecated by definition and may be removed in a future version of CMake.