summaryrefslogtreecommitdiff
path: root/Help
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2020-11-10 10:06:24 -0500
committerBen Boeckel <ben.boeckel@kitware.com>2020-11-10 10:06:24 -0500
commitc0e05671d38a6d2af73388ec46ab7d539f89c59b (patch)
tree804450b18671e42f231fa825d56221be52e946ff /Help
parent0d182c02f615b7d593edfcfe096f92b1a3e5e81e (diff)
downloadcmake-c0e05671d38a6d2af73388ec46ab7d539f89c59b.tar.gz
Help/get_filename_component: clarify NAME_W[L]E summaries
There was an ambiguity in the wording with the meaning of "or" typically meaning exclusive-or in prose. Instead, ensure that the easiest parsing is clear that the directory part is always removed.
Diffstat (limited to 'Help')
-rw-r--r--Help/command/get_filename_component.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Help/command/get_filename_component.rst b/Help/command/get_filename_component.rst
index 368d3bb6df..ea2dedb64c 100644
--- a/Help/command/get_filename_component.rst
+++ b/Help/command/get_filename_component.rst
@@ -14,9 +14,9 @@ Sets ``<var>`` to a component of ``<FileName>``, where ``<mode>`` is one of:
DIRECTORY = Directory without file name
NAME = File name without directory
EXT = File name longest extension (.b.c from d/a.b.c)
- NAME_WE = File name without directory or longest extension
+ NAME_WE = File name with neither the directory nor the longest extension
LAST_EXT = File name last extension (.c from d/a.b.c)
- NAME_WLE = File name without directory or last extension
+ NAME_WLE = File name with neither the directory nor the last extension
PATH = Legacy alias for DIRECTORY (use for CMake <= 2.8.11)
Paths are returned with forward slashes and have no trailing slashes.