summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/cmake_path/COMPARE.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-12-02 13:21:12 (GMT)
committerBrad King <brad.king@kitware.com>2020-12-02 13:21:12 (GMT)
commitbdfa5ac7f6cfc961665064f1b7a1395cfd0b2281 (patch)
tree9f9c8f4ef0db863fb6adc0ae70891477d66d1cdb /Tests/RunCMake/cmake_path/COMPARE.cmake
parentf7ff0d34f0750387f5c56483ab6ba3fb4825b62d (diff)
parent628d7ef67258f67e0b4086905011d90727d8b9a1 (diff)
downloadCMake-bdfa5ac7f6cfc961665064f1b7a1395cfd0b2281.zip
CMake-bdfa5ac7f6cfc961665064f1b7a1395cfd0b2281.tar.gz
CMake-bdfa5ac7f6cfc961665064f1b7a1395cfd0b2281.tar.bz2
Merge branch 'master' into llvm-rc-preprocess-as-c
Diffstat (limited to 'Tests/RunCMake/cmake_path/COMPARE.cmake')
-rw-r--r--Tests/RunCMake/cmake_path/COMPARE.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/RunCMake/cmake_path/COMPARE.cmake b/Tests/RunCMake/cmake_path/COMPARE.cmake
index bc6b9b4..ecf7c82 100644
--- a/Tests/RunCMake/cmake_path/COMPARE.cmake
+++ b/Tests/RunCMake/cmake_path/COMPARE.cmake
@@ -2,19 +2,19 @@
include ("${RunCMake_SOURCE_DIR}/check_errors.cmake")
unset (errors)
-set (path "a///b/c")
-cmake_path(COMPARE path EQUAL "a/b/c" output)
+set(path "a///b/c")
+cmake_path(COMPARE "${path}" EQUAL "a/b/c" output)
if (NOT output)
list (APPEND errors "'${path}' not equal to 'a/b/c'")
endif()
set (path "a/b/d/../c")
-cmake_path(COMPARE path NOT_EQUAL "a/b/c" output)
+cmake_path(COMPARE "${path}" NOT_EQUAL "a/b/c" output)
if (NOT output)
list (APPEND errors "'${path}' equal to 'a/b/c'")
endif()
cmake_path(NORMAL_PATH path)
-cmake_path(COMPARE path EQUAL "a/b/c" output)
+cmake_path(COMPARE "${path}" EQUAL "a/b/c" output)
if (NOT output)
list (APPEND errors "'${path}' not equal to 'a/b/c'")
endif()