CMP0086.rst 787 B

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