mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
Merge topic 'UseSWIG-target-name-policy'
a3a0c3aa71 UseSWIG: add policy to manage target naming strategy.
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2232
This commit is contained in:
@@ -57,6 +57,7 @@ Policies Introduced by CMake 3.13
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
||||
CMP0078: UseSWIG generates standard target names. </policy/CMP0078>
|
||||
CMP0077: option() honors normal variables. </policy/CMP0077>
|
||||
CMP0076: target_sources() command converts relative paths to absolute. </policy/CMP0076>
|
||||
|
||||
|
||||
22
Help/policy/CMP0078.rst
Normal file
22
Help/policy/CMP0078.rst
Normal file
@@ -0,0 +1,22 @@
|
||||
CMP0078
|
||||
-------
|
||||
|
||||
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.
|
||||
|
||||
This policy was introduced in CMake version 3.13. CMake version
|
||||
|release| warns when the policy is not set and uses ``OLD`` behavior.
|
||||
Use the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW``
|
||||
explicitly.
|
||||
|
||||
.. include:: DEPRECATED.txt
|
||||
5
Help/release/dev/UseSWIG-target-name-policy.rst
Normal file
5
Help/release/dev/UseSWIG-target-name-policy.rst
Normal file
@@ -0,0 +1,5 @@
|
||||
UseSWIG-target-name-policy
|
||||
--------------------------
|
||||
|
||||
* The :module:`UseSWIG` module has changed strategy for target naming.
|
||||
See policy :policy:`CMP0078`.
|
||||
Reference in New Issue
Block a user