CMP0103.rst 846 B

12345678910111213141516171819202122
  1. CMP0103
  2. -------
  3. Multiple calls to :command:`export` command with same ``FILE`` without
  4. ``APPEND`` is no longer allowed.
  5. In CMake 3.17 and below, multiple calls to :command:`export` command with the
  6. same ``FILE`` without ``APPEND`` are accepted silently but only the last
  7. occurrence is taken into account during the generation.
  8. The ``OLD`` behavior for this policy is to ignore the multiple occurrences of
  9. :command:`export` command except the last one.
  10. The ``NEW`` behavior of this policy is to raise an error on second call to
  11. :command:`export` command with same ``FILE`` without ``APPEND``.
  12. This policy was introduced in CMake version 3.18. 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