CMP0086.rst 693 B

123456789101112131415161718192021
  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. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.14
  13. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  14. .. include:: STANDARD_ADVICE.txt
  15. .. include:: DEPRECATED.txt