include ("${RunCMake_SOURCE_DIR}/check_errors.cmake") unset (errors) if (WIN32) set(path "c:/a") set(output "$") else() set(path "/a") set(output "$") endif() if (NOT output) list (APPEND errors "'${path}' is not absolute") endif() set(output "$") if (output) list (APPEND errors "'a/b' is absolute") endif() if (WIN32) set(output "$") if (NOT output) list (APPEND errors "'c:/a/b' is not absolute") endif() set(output "$") if (NOT output) list (APPEND errors "'//host/b' is not absolute") endif() set(output "$") if (output) list (APPEND errors "'/a' is absolute") endif() set(output "$") if (output) list (APPEND errors "'c:a' is absolute") endif() endif() check_errors("PATH:IS_ABSOLUTE" ${errors})