CMP0045.rst 727 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. This policy was introduced in CMake version 3.0. CMake version
  12. |release| warns when the policy is not set and uses OLD behavior. Use
  13. the cmake_policy command to set it to OLD or NEW explicitly.
  14. .. include:: DEPRECATED.txt