summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2007-02-27 18:34:12 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2007-02-27 18:34:12 (GMT)
commit5ae48cf852e700f5efc337ef293e96ac9a829736 (patch)
tree15b99a045eb895555a3958d08764d337849c325b /Source
parent08ccfacf03c7b97842e5c6d7cfe8722b8c416a21 (diff)
downloadCMake-5ae48cf852e700f5efc337ef293e96ac9a829736.zip
CMake-5ae48cf852e700f5efc337ef293e96ac9a829736.tar.gz
CMake-5ae48cf852e700f5efc337ef293e96ac9a829736.tar.bz2
ENH: add a fix for spaces in the path again...
Diffstat (limited to 'Source')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 0dc2998..c17822f 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -1766,8 +1766,15 @@ cmLocalUnixMakefileGenerator3
if (tgt && tgt[0] != '\0')
{
std::string tgt2 = this->Convert(tgt,HOME_OUTPUT,MAKEFILE);
- tgt2 = this->ConvertToMakeTarget(tgt2.c_str());
- tgt2 = this->EscapeForShell(tgt2.c_str());
+ tgt2 = this->ConvertToMakeTarget(tgt2.c_str());
+ bool forceOn = cmSystemTools::GetForceUnixPaths();
+#if !defined(WIN32) || defined(CYGWIN)
+ forceOn = true;
+#endif
+ if(forceOn )
+ {
+ tgt2 = cmSystemTools::EscapeForUnixShell(tgt2);
+ }
cmd += tgt2;
}
return cmd;