diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2018-11-27 14:10:32 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2018-12-07 17:51:57 (GMT) |
commit | dff28141dcddd90b0bb95740d66b8f698cc8da6a (patch) | |
tree | 0a6a26af46a22a672f7e12a53550b7f691559dcb /Help/policy | |
parent | 7b3d4799f8c03162d537e65effd3dd8d56fc3386 (diff) | |
download | CMake-dff28141dcddd90b0bb95740d66b8f698cc8da6a.zip CMake-dff28141dcddd90b0bb95740d66b8f698cc8da6a.tar.gz CMake-dff28141dcddd90b0bb95740d66b8f698cc8da6a.tar.bz2 |
UseSWIG: add management of SWIG option -module
When file property SWIG_MODULE_NAME is specified, provide option -module
to SWIG compiler.
Fixes: #18374
Diffstat (limited to 'Help/policy')
-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 |