summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-09-25 14:22:48 (GMT)
committerBrad King <brad.king@kitware.com>2006-09-25 14:22:48 (GMT)
commitc1b4a0bf7468eccde909ccfd6ac4b18b813dc245 (patch)
tree9d66541490514b3fd083962ae915bddc4c1e2fcd /Source/cmLocalGenerator.cxx
parent97c97730a6c93b46295284c5a49d285f57a57121 (diff)
downloadCMake-c1b4a0bf7468eccde909ccfd6ac4b18b813dc245.zip
CMake-c1b4a0bf7468eccde909ccfd6ac4b18b813dc245.tar.gz
CMake-c1b4a0bf7468eccde909ccfd6ac4b18b813dc245.tar.bz2
BUG: Disable new shell escape code until backward compatibility can be established in the new implementation.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index 66a78e1..34295ae 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2246,6 +2246,20 @@ cmLocalGenerator
std::string cmLocalGenerator::EscapeForShell(const char* str)
{
std::string result;
+ // Temporarily use old shell escaping code until a means of backward
+ // compatibility can be established in the new implementation.
+#if 1
+ bool forceOn = cmSystemTools::GetForceUnixPaths();
+ if(forceOn && this->WindowsShell)
+ {
+ cmSystemTools::SetForceUnixPaths(false);
+ }
+ result = cmSystemTools::EscapeSpaces(str);
+ if(forceOn && this->WindowsShell)
+ {
+ cmSystemTools::SetForceUnixPaths(true);
+ }
+#else
if(this->WindowsShell)
{
int size = cmsysSystem_Windows_ShellArgumentSize(str);
@@ -2264,5 +2278,6 @@ std::string cmLocalGenerator::EscapeForShell(const char* str)
result += *c;
}
}
+#endif
return result;
}