diff options
author | Brad King <brad.king@kitware.com> | 2021-02-08 17:20:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-02-08 17:44:37 (GMT) |
commit | 9cddaad9409506a616be65df43a7abb6d82f3345 (patch) | |
tree | 7757d84cb3f73c08b74410b737056a5cf722922a /Modules/AddFileDependencies.cmake | |
parent | 4841d38a7a9c48cff7e4edeb900005c04e64398a (diff) | |
download | CMake-9cddaad9409506a616be65df43a7abb6d82f3345.zip CMake-9cddaad9409506a616be65df43a7abb6d82f3345.tar.gz CMake-9cddaad9409506a616be65df43a7abb6d82f3345.tar.bz2 |
AddFileDependencies: Deprecate this unnecessary module
Document that one can call `set_property` directly instead.
Diffstat (limited to 'Modules/AddFileDependencies.cmake')
-rw-r--r-- | Modules/AddFileDependencies.cmake | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Modules/AddFileDependencies.cmake b/Modules/AddFileDependencies.cmake index c038858..13b2600 100644 --- a/Modules/AddFileDependencies.cmake +++ b/Modules/AddFileDependencies.cmake @@ -5,13 +5,25 @@ AddFileDependencies ------------------- +.. deprecated:: 3.20 + Add dependencies to a source file. .. code-block:: cmake - add_file_dependencies(<source> <files>) + add_file_dependencies(<source> <files>...) Adds the given ``<files>`` to the dependencies of file ``<source>``. + +Do not use this command in new code. It is just a wrapper around: + +.. code-block:: cmake + + set_property(SOURCE <source> APPEND PROPERTY OBJECT_DEPENDS <files>...) + +Instead use the :command:`set_property` command to append to the +:prop_sf:`OBJECT_DEPENDS` source file property directly. + #]=======================================================================] function(add_file_dependencies _file) |