set (path "/a/b") cmake_path(COMPARE path FOO "/other" output)