浏览代码

BUG: fix for try run failing on some cygwin builds. Allow a driver letter to start a full path on cygwin

Bill Hoffman 21 年之前
父节点
当前提交
8a70315bb4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Source/kwsys/SystemTools.cxx

+ 1 - 1
Source/kwsys/SystemTools.cxx

@@ -1647,7 +1647,7 @@ SystemTools::GetFilenameWithoutLastExtension(const kwsys_stl::string& filename)
 bool SystemTools::FileIsFullPath(const char* in_name)
 {
   kwsys_stl::string name = in_name;
-#if defined(_WIN32)
+#if defined(_WIN32) || defined(__CYGWIN__)
   // On Windows, the name must be at least two characters long.
   if(name.length() < 2)
     {