ENH: convert to windows paths

This commit is contained in:
Bill Hoffman 2001-12-07 14:31:28 -05:00
parent 06cc1cbf2f
commit 5a488fc850
1 changed files with 4 additions and 0 deletions

View File

@ -164,6 +164,10 @@ int main (int argc, char *argv[])
cmSystemTools::ChangeDirectory(cwd.c_str()); cmSystemTools::ChangeDirectory(cwd.c_str());
return 1; return 1;
} }
fullPath = cmSystemTools::EscapeSpaces(fullPath.c_str());
#if defined(_WIN32) && !defined(__CYGWIN__)
cmSystemTools::ConvertToWindowsSlashes(fullPath);
#endif
if (!cmSystemTools::RunCommand(fullPath.c_str(), output)) if (!cmSystemTools::RunCommand(fullPath.c_str(), output))
{ {
std::cerr << "Error: " << fullPath.c_str() << " execution failed\n"; std::cerr << "Error: " << fullPath.c_str() << " execution failed\n";