diff options
author | Brad King <brad.king@kitware.com> | 2018-12-10 13:23:34 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-12-10 13:23:42 (GMT) |
commit | d3983f7fc62eb35d08ab69ecdddff47953d86dab (patch) | |
tree | d68bc6acb168c73b699c2773d19be8d2477e5def /Help/policy/CMP0086.rst | |
parent | 45c5958e36cf55b00338b3f69cd48f43c51a03e0 (diff) | |
parent | dff28141dcddd90b0bb95740d66b8f698cc8da6a (diff) | |
download | CMake-d3983f7fc62eb35d08ab69ecdddff47953d86dab.zip CMake-d3983f7fc62eb35d08ab69ecdddff47953d86dab.tar.gz CMake-d3983f7fc62eb35d08ab69ecdddff47953d86dab.tar.bz2 |
Merge topic 'SWIG'
dff28141dc UseSWIG: add management of SWIG option -module
7b3d4799f8 Help: update policy 0078 documentation
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2669
Diffstat (limited to 'Help/policy/CMP0086.rst')
-rw-r--r-- | Help/policy/CMP0086.rst | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Help/policy/CMP0086.rst b/Help/policy/CMP0086.rst new file mode 100644 index 0000000..4a9e8b8 --- /dev/null +++ b/Help/policy/CMP0086.rst @@ -0,0 +1,20 @@ +CMP0086 +------- + +:module:`UseSWIG` honors ``SWIG_MODULE_NAME`` via ``-module`` flag. + +Starting with CMake 3.14, :module:`UseSWIG` passes option +``-module <module_name>`` to ``SWIG`` compiler if the file property +``SWIG_MODULE_NAME`` is specified. This policy provides compatibility with +projects that expect the legacy behavior. + +The ``OLD`` behavior for this policy is to never pass ``-module`` option. +The ``NEW`` behavior is to pass ``-module`` option to ``SWIG`` compiler if +``SWIG_MODULE_NAME`` is specified. + +This policy was introduced in CMake version 3.14. 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 |