From 0ce8c158cc24f78ecfb96fa6b437cc2b91df59b5 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 27 Feb 2007 12:10:42 -0500 Subject: [PATCH] ENH: fix for spaces in the path and mingw --- Source/cmLocalUnixMakefileGenerator3.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index d399a896a..0dc299887 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -1765,8 +1765,9 @@ cmLocalUnixMakefileGenerator3 // Add the target. if (tgt && tgt[0] != '\0') { - std::string tgt2 = this->Convert(tgt,HOME_OUTPUT,SHELL); + std::string tgt2 = this->Convert(tgt,HOME_OUTPUT,MAKEFILE); tgt2 = this->ConvertToMakeTarget(tgt2.c_str()); + tgt2 = this->EscapeForShell(tgt2.c_str()); cmd += tgt2; } return cmd;