CMP0195.rst 1.0 KB

123456789101112131415161718192021222324252627
  1. CMP0195
  2. -------
  3. .. versionadded:: 4.1
  4. Swift modules in build trees use the Swift module directory structure.
  5. The Swift compiler emits several supplementary files that make up the
  6. interface to a Swift library. It accepts finding these files separately
  7. or in a single swiftmodule directory. The single file keeps things better
  8. organized and makes it easier to install the resulting products.
  9. CMake versions 4.1 and above prefer to generate the modules in the
  10. directory structure when working with a new enough Swift compiler.
  11. This policy provides compatibility for projects that have not been
  12. updated to expect the new behavior.
  13. The ``OLD`` behavior for this policy is to emit the interface files directly
  14. into the current binary directory.
  15. The ``NEW`` behavior for this policy is to gather the binary swiftmodule and
  16. other supplemental compiler outputs in a single Swift module directory.
  17. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 4.1
  18. .. |WARNS_OR_DOES_NOT_WARN| replace:: does *not* warn
  19. .. include:: include/STANDARD_ADVICE.rst
  20. .. include:: include/DEPRECATED.rst