1CMP0108 2------- 3 4.. versionadded:: 3.18 5 6A target is not allowed to link to itself even through an ``ALIAS`` target. 7 8In CMake 3.17 and below, a target can link to a target aliased to itself. 9 10The ``OLD`` behavior for this policy is to allow a target to link to a target 11aliased to itself. 12 13The ``NEW`` behavior of this policy is to prevent a target to link to itself 14through an ``ALIAS`` target. 15 16This policy was introduced in CMake version 3.17. Use the 17:command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly. 18Unlike many policies, CMake version |release| does *not* warn 19when this policy is not set and simply uses ``OLD`` behavior. 20 21.. include:: DEPRECATED.txt 22