diff options
author | Brad King <brad.king@kitware.com> | 2020-12-02 13:21:12 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-12-02 13:21:12 (GMT) |
commit | bdfa5ac7f6cfc961665064f1b7a1395cfd0b2281 (patch) | |
tree | 9f9c8f4ef0db863fb6adc0ae70891477d66d1cdb /Tests/RunCMake/cmake_path/COMPARE.cmake | |
parent | f7ff0d34f0750387f5c56483ab6ba3fb4825b62d (diff) | |
parent | 628d7ef67258f67e0b4086905011d90727d8b9a1 (diff) | |
download | CMake-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.cmake | 8 |
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() |