Jelajahi Sumber

Help: Clarify role of TARGET_NAME generator expression

Brad King 1 tahun lalu
induk
melakukan
f70eb84be7
1 mengubah file dengan 6 tambahan dan 4 penghapusan
  1. 6 4
      Help/manual/cmake-generator-expressions.7.rst

+ 6 - 4
Help/manual/cmake-generator-expressions.7.rst

@@ -1727,11 +1727,13 @@ These expressions look up information about a target.
   Note that ``tgt`` is not added as a dependency of the target this
   expression is evaluated on.
 
-.. genex:: $<TARGET_NAME:...>
+.. genex:: $<TARGET_NAME:tgt>
 
-  Marks ``...`` as being the name of a target.  This is required if exporting
-  targets to multiple dependent export sets.  The ``...`` must be a literal
-  name of a target, it may not contain generator expressions.
+  The target name ``tgt`` as written.  This marks ``tgt`` as being the name
+  of a target inside a larger expression, which is required if exporting
+  targets to multiple dependent export sets.  The ``tgt`` text must be a
+  literal name of a target; it may not contain generator expressions.
+  The target does not have to exist.
 
 .. genex:: $<TARGET_POLICY:policy>