CMP0040.rst 763 B

1234567891011121314151617181920
  1. CMP0040
  2. -------
  3. The target in the ``TARGET`` signature of :command:`add_custom_command`
  4. must exist and must be defined in the current directory.
  5. CMake 2.8.12 and lower silently ignored a custom command created with
  6. the ``TARGET`` signature of :command:`add_custom_command`
  7. if the target is unknown or was defined outside the current directory.
  8. The ``OLD`` behavior for this policy is to ignore custom commands
  9. for unknown targets. The ``NEW`` behavior for this policy is to report
  10. an error if the target referenced in :command:`add_custom_command` is
  11. unknown or was defined outside the current directory.
  12. .. |INTRODUCED_IN_CMAKE_VERSION| replace:: 3.0
  13. .. |WARNS_OR_DOES_NOT_WARN| replace:: warns
  14. .. include:: STANDARD_ADVICE.txt
  15. .. include:: DEPRECATED.txt