CMP0039.rst 684 B

1234567891011121314151617181920
  1. CMP0039
  2. -------
  3. .. |REMOVED_IN_CMAKE_VERSION| replace:: 4.0
  4. .. include:: REMOVED_PROLOGUE.txt
  5. Utility targets may not have link dependencies.
  6. CMake 2.8.12 and lower allowed using utility targets in the left hand side
  7. position of the :command:`target_link_libraries` command. This is an indicator
  8. of a bug in user code.
  9. The ``OLD`` behavior for this policy is to ignore attempts to set the link
  10. libraries of utility targets. The ``NEW`` behavior for this policy is to
  11. report an error if an attempt is made to set the link libraries of a
  12. utility target.
  13. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.0
  14. .. |WARNED_OR_DID_NOT_WARN| replace:: warned
  15. .. include:: REMOVED_EPILOGUE.txt