CMP0107.rst 642 B

12345678910111213141516171819
  1. CMP0107
  2. -------
  3. It is not allowed to create an ``ALIAS`` target with the same name as an
  4. another target.
  5. In CMake 3.17 and below, an ``ALIAS`` target can overwrite silently an existing
  6. target with the same name.
  7. The ``OLD`` behavior for this policy is to allow target overwrite.
  8. The ``NEW`` behavior of this policy is to prevent target overwriting.
  9. This policy was introduced in CMake version 3.17. Use the
  10. :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
  11. Unlike many policies, CMake version |release| does *not* warn
  12. when this policy is not set and simply uses ``OLD`` behavior.
  13. .. include:: DEPRECATED.txt