ENH: use windows paths to run commands and escape spaces

This commit is contained in:
Bill Hoffman 2001-12-07 13:10:50 -05:00
parent 30a56de4b7
commit 06cc1cbf2f
1 changed files with 4 additions and 0 deletions

View File

@ -72,6 +72,10 @@ int main (int argc, char *argv[])
{
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;
cmSystemTools::LowerCase(lowerCaseCommand);
// if msdev is the make program then do the following