CMP0078.rst 798 B

12345678910111213141516171819202122232425
  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. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.13
  16. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  17. .. include:: STANDARD_ADVICE.txt
  18. .. include:: DEPRECATED.txt