浏览代码

ENH: make sure command is unix style as it may have been sent into cmake as a windows path

Bill Hoffman 19 年之前
父节点
当前提交
bb08b88cc4
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      Source/cmTest.cxx

+ 1 - 0
Source/cmTest.cxx

@@ -42,6 +42,7 @@ void cmTest::SetCommand(const char* command)
     command = "";
     }
   this->Command = command;
+  cmSystemTools::ConvertToUnixSlashes(this->Command);
 }
 
 void cmTest::SetArguments(const std::vector<cmStdString>& args)