summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2018-10-26 15:55:34 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2018-10-26 18:43:17 (GMT)
commit213433858f6962be8709b4e3b9332ce1a103b54b (patch)
tree59fa79c58921fe6c8890505e30a9da7d06311fd6 /Help
parent2a8c05ddc792c4a0fea82764cdc32204c6d50885 (diff)
downloadCMake-213433858f6962be8709b4e3b9332ce1a103b54b.zip
CMake-213433858f6962be8709b4e3b9332ce1a103b54b.tar.gz
CMake-213433858f6962be8709b4e3b9332ce1a103b54b.tar.bz2
Help: Clarify usage of TARGET_PROPERTY generator expression
When using $<TARGET_PROPERTY:prop>, the value of prop comes from the consuming target rather than the current target. Add a note to clarify this.
Diffstat (limited to 'Help')
-rw-r--r--Help/manual/cmake-generator-expressions.7.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/Help/manual/cmake-generator-expressions.7.rst b/Help/manual/cmake-generator-expressions.7.rst
index 0826ce0..bddf827 100644
--- a/Help/manual/cmake-generator-expressions.7.rst
+++ b/Help/manual/cmake-generator-expressions.7.rst
@@ -238,7 +238,10 @@ Available informational expressions are:
expression is evaluated on.
``$<TARGET_PROPERTY:prop>``
Value of the property ``prop`` on the target on which the generator
- expression is evaluated.
+ expression is evaluated. Note that for generator expressions in
+ :ref:`Target Usage Requirements` this is the value of the property
+ on the consuming target rather than the target specifying the
+ requirement.
``$<INSTALL_PREFIX>``
Content of the install prefix when the target is exported via
:command:`install(EXPORT)` and empty otherwise.