diff options
Diffstat (limited to 'Modules/MacroAddFileDependencies.cmake')
-rw-r--r-- | Modules/MacroAddFileDependencies.cmake | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/Modules/MacroAddFileDependencies.cmake b/Modules/MacroAddFileDependencies.cmake index c4374ee..8fdc264 100644 --- a/Modules/MacroAddFileDependencies.cmake +++ b/Modules/MacroAddFileDependencies.cmake @@ -5,15 +5,21 @@ MacroAddFileDependencies ------------------------ -MACRO_ADD_FILE_DEPENDENCIES(<_file> depend_files...) +.. deprecated:: 3.14 -Using the macro MACRO_ADD_FILE_DEPENDENCIES() is discouraged. There -are usually better ways to specify the correct dependencies. +:: + + MACRO_ADD_FILE_DEPENDENCIES(<source> <files>...) + +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. -MACRO_ADD_FILE_DEPENDENCIES(<_file> depend_files...) is just a -convenience wrapper around the OBJECT_DEPENDS source file property. -You can just use set_property(SOURCE <file> APPEND PROPERTY -OBJECT_DEPENDS depend_files) instead. #]=======================================================================] macro (MACRO_ADD_FILE_DEPENDENCIES _file) |