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