CMP0078.rst 892 B

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