|
|
@@ -12,7 +12,6 @@ ensure that they build before ``<target>`` does. A top-level target
|
|
|
is one created by one of the :command:`add_executable`,
|
|
|
:command:`add_library`, or :command:`add_custom_target` commands
|
|
|
(but not targets generated by CMake like ``install``).
|
|
|
-At least one ``<target-dependency>`` must be given.
|
|
|
|
|
|
Dependencies added to an :ref:`imported target <Imported Targets>`
|
|
|
or an :ref:`interface library <Interface Libraries>` are followed
|
|
|
@@ -32,6 +31,10 @@ transitively in its place since the target itself does not build.
|
|
|
finished before sources in ``<target>`` start compiling; this
|
|
|
ensures generated sources are available.
|
|
|
|
|
|
+.. versionchanged:: 4.1
|
|
|
+ The command may be called with no dependencies.
|
|
|
+ Previously, at least one dependency was required.
|
|
|
+
|
|
|
See Also
|
|
|
^^^^^^^^
|
|
|
|