CMP0045.rst 731 B

1234567891011121314151617181920
  1. CMP0045
  2. -------
  3. .. |REMOVED_IN_CMAKE_VERSION| replace:: 4.0
  4. .. include:: include/REMOVED_PROLOGUE.rst
  5. Error on non-existent target in get_target_property.
  6. In CMake 2.8.12 and lower, the :command:`get_target_property` command accepted
  7. a non-existent target argument without issuing any error or warning. The
  8. result variable is set to a ``-NOTFOUND`` value.
  9. The ``OLD`` behavior for this policy is to issue no warning and set the result
  10. variable to a ``-NOTFOUND`` value. The ``NEW`` behavior
  11. for this policy is to issue a ``FATAL_ERROR`` if the command is called with a
  12. non-existent target.
  13. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.0
  14. .. |WARNED_OR_DID_NOT_WARN| replace:: warned
  15. .. include:: include/REMOVED_EPILOGUE.rst