CMP0103.rst 870 B

123456789101112131415161718192021222324
  1. CMP0103
  2. -------
  3. .. versionadded:: 3.18
  4. Multiple calls to :command:`export` command with same ``FILE`` without
  5. ``APPEND`` is no longer allowed.
  6. In CMake 3.17 and below, multiple calls to :command:`export` command with the
  7. same ``FILE`` without ``APPEND`` are accepted silently but only the last
  8. occurrence is taken into account during the generation.
  9. The ``OLD`` behavior for this policy is to ignore the multiple occurrences of
  10. :command:`export` command except the last one.
  11. The ``NEW`` behavior of this policy is to raise an error on second call to
  12. :command:`export` command with same ``FILE`` without ``APPEND``.
  13. This policy was introduced in CMake version 3.18. CMake version
  14. |release| warns when the policy is not set and uses ``OLD`` behavior.
  15. Use the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW``
  16. explicitly.
  17. .. include:: DEPRECATED.txt