summaryrefslogtreecommitdiffstats
path: root/Help/manual/cmake-generator-expressions.7.rst
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2022-06-30 19:24:09 (GMT)
committerBrad King <brad.king@kitware.com>2022-07-05 15:31:23 (GMT)
commita4f0321ddc93ab87b661f70422ad0f22f5b8be18 (patch)
tree9534e66d1ca3d5b75a974cfcb461599429f40880 /Help/manual/cmake-generator-expressions.7.rst
parent8fd68f9dd34fb3a151d51eaf833433fd3002d0f9 (diff)
downloadCMake-a4f0321ddc93ab87b661f70422ad0f22f5b8be18.zip
CMake-a4f0321ddc93ab87b661f70422ad0f22f5b8be18.tar.gz
CMake-a4f0321ddc93ab87b661f70422ad0f22f5b8be18.tar.bz2
Help: Document $<TARGET_FILE> dependency behavior
Fixes: #23686
Diffstat (limited to 'Help/manual/cmake-generator-expressions.7.rst')
-rw-r--r--Help/manual/cmake-generator-expressions.7.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst
index 0a54c1d..f53af37 100644
--- a/Help/manual/cmake-generator-expressions.7.rst
+++ b/Help/manual/cmake-generator-expressions.7.rst
@@ -1044,6 +1044,10 @@ which is just the string ``tgt``.
Full path to the ``tgt`` binary file.
+ Note that ``tgt`` is not added as a dependency of the target this
+ expression is evaluated on, unless the expression is being used in
+ :command:`add_custom_command` or :command:`add_custom_target`.
+
.. genex:: $<TARGET_FILE_BASE_NAME:tgt>
.. versionadded:: 3.15