Просмотр исходного кода

ENH: use windows paths to run commands and escape spaces

Bill Hoffman 24 лет назад
Родитель
Сommit
06cc1cbf2f
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      Source/cmaketest.cxx

+ 4 - 0
Source/cmaketest.cxx

@@ -72,6 +72,10 @@ int main (int argc, char *argv[])
     {
     {
     std::cerr << "Error: cmaketest does not have a valid MAKEPROGRAM\n";
     std::cerr << "Error: cmaketest does not have a valid MAKEPROGRAM\n";
     }
     }
+  makeCommand = cmSystemTools::EscapeSpaces(makeCommand.c_str());
+#if defined(_WIN32) && !defined(__CYGWIN__)      
+  cmSystemTools::ConvertToWindowsSlashes(makeCommand);
+#endif
   std::string lowerCaseCommand = makeCommand;
   std::string lowerCaseCommand = makeCommand;
   cmSystemTools::LowerCase(lowerCaseCommand);
   cmSystemTools::LowerCase(lowerCaseCommand);
   // if msdev is the make program then do the following
   // if msdev is the make program then do the following