1CMP0086
2-------
3
4.. versionadded:: 3.14
5
6:module:`UseSWIG` honors ``SWIG_MODULE_NAME`` via ``-module`` flag.
7
8Starting with CMake 3.14, :module:`UseSWIG` passes option
9``-module <module_name>`` to ``SWIG`` compiler if the file property
10``SWIG_MODULE_NAME`` is specified. This policy provides compatibility with
11projects that expect the legacy behavior.
12
13The ``OLD`` behavior for this policy is to never pass ``-module`` option.
14The ``NEW`` behavior is to pass ``-module`` option to ``SWIG`` compiler if
15``SWIG_MODULE_NAME`` is specified.
16
17This policy was introduced in CMake version 3.14.  CMake version
18|release| warns when the policy is not set and uses ``OLD`` behavior.
19Use the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW``
20explicitly.
21
22.. include:: DEPRECATED.txt
23