https://github.com/Kitware/CMake
Raw File
Tip revision: ef5e2e8a62982ebccf4883fc7a01cdb66f8ca183 authored by Brad King on 13 June 2018, 14:52:11 UTC
Merge branch 'sphinx-info' into release-3.12
Tip revision: ef5e2e8
OBJECT_DEPENDS.rst
OBJECT_DEPENDS
--------------

Additional files on which a compiled object file depends.

Specifies a :ref:`;-list <CMake Language Lists>` of full-paths to
files on which any object files compiled from this source file depend.
On :ref:`Makefile Generators` and the :generator:`Ninja` generator an
object file will be recompiled if any of the named files is newer than it.
:ref:`Visual Studio Generators` and the :generator:`Xcode` generator
cannot implement such compilation dependencies.

This property need not be used to specify the dependency of a source
file on a generated header file that it includes.  Although the
property was originally introduced for this purpose, it is no longer
necessary.  If the generated header file is created by a custom
command in the same target as the source file, the automatic
dependency scanning process will recognize the dependency.  If the
generated header file is created by another target, an inter-target
dependency should be created with the :command:`add_dependencies`
command (if one does not already exist due to linking relationships).
back to top