From 06cc1cbf2f747a680791de68b682236d3f4f6edd Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Fri, 7 Dec 2001 13:10:50 -0500 Subject: [PATCH] ENH: use windows paths to run commands and escape spaces --- Source/cmaketest.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmaketest.cxx b/Source/cmaketest.cxx index f6e5ae4bb..9fdfe4b19 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