summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-02-18 14:08:59 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-02-18 14:09:55 (GMT)
commit0f2eb9ac6fff686c999c3058a76ec398c054bc0b (patch)
tree926ac9caca4d81db6434263b17de2a81e0f162d7
parent786edf9ab408c35384a081d9f33ec048b4060f1f (diff)
parent2cc145928c3f024b99f7af574316caf79768b96c (diff)
downloadCMake-0f2eb9ac6fff686c999c3058a76ec398c054bc0b.zip
CMake-0f2eb9ac6fff686c999c3058a76ec398c054bc0b.tar.gz
CMake-0f2eb9ac6fff686c999c3058a76ec398c054bc0b.tar.bz2
Merge topic 'get_filename_component_docs'
2cc145928c Help: Remove outdated statement about get_filename_component() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2973
-rw-r--r--Help/command/get_filename_component.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/Help/command/get_filename_component.rst b/Help/command/get_filename_component.rst
index f55499a..9bbf877 100644
--- a/Help/command/get_filename_component.rst
+++ b/Help/command/get_filename_component.rst
@@ -15,14 +15,13 @@ Sets ``<var>`` to a component of ``<FileName>``, where ``<mode>`` is one of:
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
- LAST_EXT = File name last extention (.c from d/a.b.c)
+ LAST_EXT = File name last extension (.c from d/a.b.c)
NAME_WLE = File name without directory or last extension
PATH = Legacy alias for DIRECTORY (use for CMake <= 2.8.11)
Paths are returned with forward slashes and have no trailing slashes.
-The longest file extension is always considered. If the optional
-``CACHE`` argument is specified, the result variable is added to the
-cache.
+If the optional ``CACHE`` argument is specified, the result variable is
+added to the cache.
.. code-block:: cmake