MacroAddFileDependencies.cmake 867 B

1234567891011121314151617181920212223242526272829
  1. # Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. # file Copyright.txt or https://cmake.org/licensing for details.
  3. #[=======================================================================[.rst:
  4. MacroAddFileDependencies
  5. ------------------------
  6. .. deprecated:: 3.14
  7. .. code-block:: cmake
  8. MACRO_ADD_FILE_DEPENDENCIES(<source> <files>...)
  9. Do not use this command in new code. It is just a wrapper around:
  10. .. code-block:: cmake
  11. set_property(SOURCE <source> APPEND PROPERTY OBJECT_DEPENDS <files>...)
  12. Instead use the :command:`set_property` command to append to the
  13. :prop_sf:`OBJECT_DEPENDS` source file property directly.
  14. #]=======================================================================]
  15. macro (MACRO_ADD_FILE_DEPENDENCIES _file)
  16. set_property(SOURCE "${_file}" APPEND PROPERTY OBJECT_DEPENDS "${ARGN}")
  17. endmacro ()