CMP0038.rst 595 B

123456789101112131415161718
  1. CMP0038
  2. -------
  3. Targets may not link directly to themselves.
  4. CMake 2.8.12 and lower allowed a build target to link to itself directly with
  5. a :command:`target_link_libraries` call. This is an indicator of a bug in
  6. user code.
  7. The ``OLD`` behavior for this policy is to ignore targets which list themselves
  8. in their own link implementation. The ``NEW`` behavior for this policy is to
  9. report an error if a target attempts to link to itself.
  10. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.0
  11. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  12. .. include:: STANDARD_ADVICE.txt
  13. .. include:: DEPRECATED.txt