summaryrefslogtreecommitdiffstats
path: root/Help
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-06-12 09:18:37 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2021-06-12 09:22:40 (GMT)
commite49cbf1d440b8c54fa5acd806f91475092708bc3 (patch)
treef5815bc66f8646fc2d9e6fb58cfd6723a52d8125 /Help
parente3c420a74fc528a8c0fb671f50d51df4e938c712 (diff)
downloadCMake-e49cbf1d440b8c54fa5acd806f91475092708bc3.zip
CMake-e49cbf1d440b8c54fa5acd806f91475092708bc3.tar.gz
CMake-e49cbf1d440b8c54fa5acd806f91475092708bc3.tar.bz2
Help: cmake_path: fix erroneous example for IS_PREFIX
Diffstat (limited to 'Help')
-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