CMP0045.rst 663 B

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