summaryrefslogtreecommitdiffstats
path: root/Source/cmaketest.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-12-07 18:10:50 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-12-07 18:10:50 (GMT)
commit06cc1cbf2f747a680791de68b682236d3f4f6edd (patch)
treef84fb8e20c637d81cb0fcd7f7cd3842db6a8d551 /Source/cmaketest.cxx
parent30a56de4b7355d3fa69545af9571105b8cae8eb9 (diff)
downloadCMake-06cc1cbf2f747a680791de68b682236d3f4f6edd.zip
CMake-06cc1cbf2f747a680791de68b682236d3f4f6edd.tar.gz
CMake-06cc1cbf2f747a680791de68b682236d3f4f6edd.tar.bz2
ENH: use windows paths to run commands and escape spaces
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 f6e5ae4..9fdfe4b 100644
--- a/Source/cmaketest.cxx
+++ b/Source/cmaketest.cxx
@@ -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