CMP0078.rst 868 B

123456789101112131415161718192021222324
  1. CMP0078
  2. -------
  3. :module:`UseSWIG` generates standard target names.
  4. Starting with CMake 3.13, :module:`UseSWIG` generates now standard target
  5. names. This policy provides compatibility with projects that expect the legacy
  6. behavior.
  7. The ``OLD`` behavior for this policy relies on
  8. ``UseSWIG_TARGET_NAME_PREFERENCE`` variable that can be used to specify an
  9. explicit preference. The value may be one of:
  10. * ``LEGACY``: legacy strategy is applied. Variable
  11. ``SWIG_MODULE_<name>_REAL_NAME`` must be used to get real target name.
  12. This is the default if not specified.
  13. * ``STANDARD``: target name matches specified name.
  14. This policy was introduced in CMake version 3.13. CMake version
  15. |release| warns when the policy is not set and uses ``OLD`` behavior.
  16. Use the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW``
  17. explicitly.
  18. .. include:: DEPRECATED.txt