From 4665d1e69ad07b9c147db5b6e140235ea2f5ab9d Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Sat, 12 Jun 2021 11:23:47 +0200 Subject: Help: cmake_path: fix erroneous example for IS_PREFIX Fixes: #22302 --- Help/command/cmake_path.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Help/command/cmake_path.rst b/Help/command/cmake_path.rst index 193180d..565a37b 100644 --- a/Help/command/cmake_path.rst +++ b/Help/command/cmake_path.rst @@ -459,9 +459,10 @@ are :ref:`normalized ` 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 -- cgit v0.12