1OBJECT_DEPENDS 2-------------- 3 4Additional files on which a compiled object file depends. 5 6Specifies a :ref:`semicolon-separated list <CMake Language Lists>` of full-paths to 7files on which any object files compiled from this source file depend. 8On :ref:`Makefile Generators` and the :generator:`Ninja` generator an 9object file will be recompiled if any of the named files is newer than it. 10:ref:`Visual Studio Generators` and the :generator:`Xcode` generator 11cannot implement such compilation dependencies. 12 13This property need not be used to specify the dependency of a source 14file on a generated header file that it includes. Although the 15property was originally introduced for this purpose, it is no longer 16necessary. If the generated header file is created by a custom 17command in the same target as the source file, the automatic 18dependency scanning process will recognize the dependency. If the 19generated header file is created by another target, an inter-target 20dependency should be created with the :command:`add_dependencies` 21command (if one does not already exist due to linking relationships). 22