summaryrefslogtreecommitdiffstats
path: root/Source/cmaketest.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-12-07 19:31:28 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-12-07 19:31:28 (GMT)
commit5a488fc85050ba668e7e42e11a62924a32f58616 (patch)
treea5cae4c20e3bafea1196f43de146fd16a2345d41 /Source/cmaketest.cxx
parent06cc1cbf2f747a680791de68b682236d3f4f6edd (diff)
downloadCMake-5a488fc85050ba668e7e42e11a62924a32f58616.zip
CMake-5a488fc85050ba668e7e42e11a62924a32f58616.tar.gz
CMake-5a488fc85050ba668e7e42e11a62924a32f58616.tar.bz2
ENH: convert to windows paths
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";