summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/GenEx-PATH_EQUAL/PATH_EQUAL.cmake.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-06-03 13:44:51 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-06-03 13:44:58 (GMT)
commitbf58164cac96c74000c46c1ca7d7d31a06137c16 (patch)
tree3b0f15377a7d2e823e9b8dc1a85c3e8b04a6ebed /Tests/RunCMake/GenEx-PATH_EQUAL/PATH_EQUAL.cmake.in
parent3715c154c84c9d55aa071ceac926520a9677a047 (diff)
parent4d1883df1142fbe5c23cb7f433f619c1a7322984 (diff)
downloadCMake-bf58164cac96c74000c46c1ca7d7d31a06137c16.zip
CMake-bf58164cac96c74000c46c1ca7d7d31a06137c16.tar.gz
CMake-bf58164cac96c74000c46c1ca7d7d31a06137c16.tar.bz2
Merge topic 'genex-PATH_EQUAL'
4d1883df11 Genex-PATH_EQUAL: path comparison Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !7309
Diffstat (limited to 'Tests/RunCMake/GenEx-PATH_EQUAL/PATH_EQUAL.cmake.in')
-rw-r--r--Tests/RunCMake/GenEx-PATH_EQUAL/PATH_EQUAL.cmake.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/RunCMake/GenEx-PATH_EQUAL/PATH_EQUAL.cmake.in b/Tests/RunCMake/GenEx-PATH_EQUAL/PATH_EQUAL.cmake.in
new file mode 100644
index 0000000..e8a1e95
--- /dev/null
+++ b/Tests/RunCMake/GenEx-PATH_EQUAL/PATH_EQUAL.cmake.in
@@ -0,0 +1,8 @@
+
+include ("${RunCMake_SOURCE_DIR}/check_errors.cmake")
+
+expect_true("$<PATH_EQUAL:a///b/c,a/b/c>" "a///b/c" "a/b/c")
+
+expect_false("$<PATH_EQUAL:a/b/d/../c,a/b/c>" "a/b/d/../c" "a/b/c")
+
+expect_true("$<PATH_EQUAL:$<PATH:NORMAL_PATH,a/b/d/../c>,a/b/c>" "a/b/d/../c" "a/b/c")