1
2include ("${RunCMake_SOURCE_DIR}/check_errors.cmake")
3unset (errors)
4
5set(path "a///b/c")
6cmake_path(COMPARE "${path}" EQUAL "a/b/c" output)
7if (NOT output)
8  list (APPEND errors "'${path}' not equal to 'a/b/c'")
9endif()
10
11set (path "a/b/d/../c")
12cmake_path(COMPARE "${path}" NOT_EQUAL "a/b/c" output)
13if (NOT output)
14  list (APPEND errors "'${path}' equal to 'a/b/c'")
15endif()
16cmake_path(NORMAL_PATH path)
17cmake_path(COMPARE "${path}" EQUAL "a/b/c" output)
18if (NOT output)
19  list (APPEND errors "'${path}' not equal to 'a/b/c'")
20endif()
21
22check_errors (COMPARE ${errors})
23