cmake/Modules/MacroAddFileDependencies.cmake

30 lines
848 B
CMake
Raw Normal View History

2016-10-30 18:24:19 +01:00
# Distributed under the OSI-approved BSD 3-Clause License. See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.
2019-11-11 23:01:05 +01:00
#[=======================================================================[.rst:
MacroAddFileDependencies
------------------------
2021-09-14 00:13:48 +02:00
.. deprecated:: 3.14
2019-11-11 23:01:05 +01:00
2021-09-14 00:13:48 +02:00
::
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.
2019-11-11 23:01:05 +01:00
#]=======================================================================]
2009-10-04 10:30:41 +03:00
2013-03-16 19:13:01 +02:00
macro (MACRO_ADD_FILE_DEPENDENCIES _file)
2021-09-14 00:13:48 +02:00
set_property(SOURCE "${_file}" APPEND PROPERTY OBJECT_DEPENDS "${ARGN}")
2013-03-16 19:13:01 +02:00
endmacro ()