summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-14 13:42:39 (GMT)
committerKitware Robot <kwrobot@kitware.com>2021-06-14 13:44:14 (GMT)
commita7ad3a5f927a43452ad0bd5d19360b7288e57899 (patch)
treed0295ca29f74334bc48dd3c2c23a0a3b6e474ec7
parent43c42e12c843b8478de9417d048c4c25e5458e4a (diff)
parente49cbf1d440b8c54fa5acd806f91475092708bc3 (diff)
downloadCMake-a7ad3a5f927a43452ad0bd5d19360b7288e57899.zip
CMake-a7ad3a5f927a43452ad0bd5d19360b7288e57899.tar.gz
CMake-a7ad3a5f927a43452ad0bd5d19360b7288e57899.tar.bz2
Merge topic 'help-cmake_path-IS_PREFIX' into release-3.20
e49cbf1d44 Help: cmake_path: fix erroneous example for IS_PREFIX Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !6223
-rw-r--r--Help/command/cmake_path.rst7
1 files changed, 4 insertions, 3 deletions
diff --git a/Help/command/cmake_path.rst b/Help/command/cmake_path.rst
index a8999f3..e7a01ab 100644
--- a/Help/command/cmake_path.rst
+++ b/Help/command/cmake_path.rst
@@ -459,9 +459,10 @@ are :ref:`normalized <Normalization>` before the check.
.. code-block:: cmake
- set(path "/a/b/c/d")
- cmake_path(IS_PREFIX path "/a/b" result) # result = true
- cmake_path(IS_PREFIX path "/x/y/z" result) # result = false
+ set(path "/a/b/c")
+ cmake_path(IS_PREFIX path "/a/b/c/d" result) # result = true
+ cmake_path(IS_PREFIX path "/a/b" result) # result = false
+ cmake_path(IS_PREFIX path "/x/y/z" result) # result = false
set(path "/a/b")
cmake_path(IS_PREFIX path "/a/c/../b" NORMALIZE result) # result = true