CMP0086.rst 763 B

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