CMP0078.rst 816 B

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