diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-27 17:10:42 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2007-02-27 17:10:42 (GMT) |
commit | 0ce8c158cc24f78ecfb96fa6b437cc2b91df59b5 (patch) | |
tree | 31502165340047831f1f40b9c0d59ee86a832b5f | |
parent | 4d9bc90e58c29a9d39fc8ecd734e9fe59a24f14f (diff) | |
download | CMake-0ce8c158cc24f78ecfb96fa6b437cc2b91df59b5.zip CMake-0ce8c158cc24f78ecfb96fa6b437cc2b91df59b5.tar.gz CMake-0ce8c158cc24f78ecfb96fa6b437cc2b91df59b5.tar.bz2 |
ENH: fix for spaces in the path and mingw
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index d399a89..0dc2998 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; |