diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2018-07-23 08:38:08 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2018-07-25 16:00:52 (GMT) |
commit | a3a0c3aa71498f76cc0e9655038de7bbb5430a03 (patch) | |
tree | d094f6028f45cc327e923afe089085f00e846783 /Help/policy | |
parent | 3ab6f056dc8765c98e62a04a16fa24f23f201b7a (diff) | |
download | CMake-a3a0c3aa71498f76cc0e9655038de7bbb5430a03.zip CMake-a3a0c3aa71498f76cc0e9655038de7bbb5430a03.tar.gz CMake-a3a0c3aa71498f76cc0e9655038de7bbb5430a03.tar.bz2 |
UseSWIG: add policy to manage target naming strategy.
Diffstat (limited to 'Help/policy')
-rw-r--r-- | Help/policy/CMP0078.rst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Help/policy/CMP0078.rst b/Help/policy/CMP0078.rst new file mode 100644 index 0000000..54cdc9c --- /dev/null +++ b/Help/policy/CMP0078.rst @@ -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 |