summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/cmake_path/IS_PREFIX.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-01-13 14:27:49 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2021-01-13 14:27:49 (GMT)
commit76f0bcdfb6e04f1f6089ea693d69b642bbf26e82 (patch)
tree08ee286265df549fac25cee13c2c590135ecfd8c /Tests/RunCMake/cmake_path/IS_PREFIX.cmake
parent3ad1ee81445d4ce4388bcde7222a676725aebcd6 (diff)
downloadCMake-76f0bcdfb6e04f1f6089ea693d69b642bbf26e82.zip
CMake-76f0bcdfb6e04f1f6089ea693d69b642bbf26e82.tar.gz
CMake-76f0bcdfb6e04f1f6089ea693d69b642bbf26e82.tar.bz2
cmake_path: various updates
To follow discussions in #21385 and !5682: * Fix bug in cmCMakePath::IsSuffix() method * cmake_path(HASH) always normalized paths (NORMALIZE option removed)
Diffstat (limited to 'Tests/RunCMake/cmake_path/IS_PREFIX.cmake')
-rw-r--r--Tests/RunCMake/cmake_path/IS_PREFIX.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tests/RunCMake/cmake_path/IS_PREFIX.cmake b/Tests/RunCMake/cmake_path/IS_PREFIX.cmake
index 53da93b..9160dab 100644
--- a/Tests/RunCMake/cmake_path/IS_PREFIX.cmake
+++ b/Tests/RunCMake/cmake_path/IS_PREFIX.cmake
@@ -18,5 +18,10 @@ if (NOT output)
list (APPEND errors "'${path} is not prefix of 'a/b/d/e'")
endif()
+set(path "/a/b/..")
+cmake_path(IS_PREFIX path "/a/c/../b" NORMALIZE output)
+if (NOT output)
+ list (APPEND errors "'${path} is not prefix of '/a/c/../b'")
+endif()
check_errors (IS_PREFIX ${errors})