mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Every policy's documentation has a paragraph on what version of CMake introduced it, how to set the policy, and whether CMake warns if the policy is not set. The wording of this paragraph has diverged across policies over time. Factor the paragraph out into a standard advice document included by every policy.
26 lines
798 B
ReStructuredText
26 lines
798 B
ReStructuredText
CMP0078
|
|
-------
|
|
|
|
.. versionadded:: 3.13
|
|
|
|
:module:`UseSWIG` generates standard target names.
|
|
|
|
Starting with CMake 3.13, :module:`UseSWIG` generates now standard target
|
|
names. This policy provides compatibility with projects that expect the legacy
|
|
behavior.
|
|
|
|
The ``OLD`` behavior for this policy relies on
|
|
``UseSWIG_TARGET_NAME_PREFERENCE`` variable that can be used to specify an
|
|
explicit preference. The value may be one of:
|
|
|
|
* ``LEGACY``: legacy strategy is applied. Variable
|
|
``SWIG_MODULE_<name>_REAL_NAME`` must be used to get real target name.
|
|
This is the default if not specified.
|
|
* ``STANDARD``: target name matches specified name.
|
|
|
|
.. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.13
|
|
.. |WARNS_OR_DOES_NOT_WARN| replace:: warns
|
|
.. include:: STANDARD_ADVICE.txt
|
|
|
|
.. include:: DEPRECATED.txt
|