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 (output) list (APPEND errors "'${path} is relative") endif() set(output "$") if (NOT output) list (APPEND errors "'a/b' is not relative") endif() if (WIN32) set(output "$") if (output) list (APPEND errors "'c:/a/b' is relative") endif() set(output "$") if (output) list (APPEND errors "'//host/b' is relative") endif() set(output "$") if (NOT output) list (APPEND errors "'/a' is not relative") endif() set(output "$") if (NOT output) list (APPEND errors "'c:a' is not relative") endif() endif() check_errors("PATH:IS_RELATIVE" ${errors})