1CMP0038
2-------
3
4Targets may not link directly to themselves.
5
6CMake 2.8.12 and lower allowed a build target to link to itself directly with
7a :command:`target_link_libraries` call. This is an indicator of a bug in
8user code.
9
10The ``OLD`` behavior for this policy is to ignore targets which list themselves
11in their own link implementation.  The ``NEW`` behavior for this policy is to
12report an error if a target attempts to link to itself.
13
14This policy was introduced in CMake version 3.0.  CMake version
15|release| warns when the policy is not set and uses ``OLD`` behavior.  Use
16the :command:`cmake_policy` command to set it to ``OLD`` or ``NEW`` explicitly.
17
18.. include:: DEPRECATED.txt
19