summaryrefslogtreecommitdiffstats
path: root/Source/cmaketest.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmaketest.cxx')
-rw-r--r--Source/cmaketest.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmaketest.cxx b/Source/cmaketest.cxx
index 9fdfe4b..99a6e63 100644
--- a/Source/cmaketest.cxx
+++ b/Source/cmaketest.cxx
@@ -164,6 +164,10 @@ int main (int argc, char *argv[])
cmSystemTools::ChangeDirectory(cwd.c_str());
return 1;
}
+ fullPath = cmSystemTools::EscapeSpaces(fullPath.c_str());
+#if defined(_WIN32) && !defined(__CYGWIN__)
+ cmSystemTools::ConvertToWindowsSlashes(fullPath);
+#endif
if (!cmSystemTools::RunCommand(fullPath.c_str(), output))
{
std::cerr << "Error: " << fullPath.c_str() << " execution failed\n";