summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-10-04 22:52:29 (GMT)
committerBrad King <brad.king@kitware.com>2006-10-04 22:52:29 (GMT)
commit406f3554c787f6926e9775f953e8f590db78803e (patch)
tree8968bcf410707e07d074779ca0ea3e69c0dee598 /Source/cmLocalGenerator.cxx
parent038c9e27d78b2df56460c85a1a797c7e0dc3e149 (diff)
downloadCMake-406f3554c787f6926e9775f953e8f590db78803e.zip
CMake-406f3554c787f6926e9775f953e8f590db78803e.tar.gz
CMake-406f3554c787f6926e9775f953e8f590db78803e.tar.bz2
BUG: Fixed display of custom command comments with quotes, dollars, and other special characters in them.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index fe89580..3436d6f 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2278,7 +2278,8 @@ std::string cmLocalGenerator::EscapeForShellOldStyle(const char* str)
}
//----------------------------------------------------------------------------
-std::string cmLocalGenerator::EscapeForShell(const char* str, bool makeVars)
+std::string cmLocalGenerator::EscapeForShell(const char* str, bool makeVars,
+ bool forEcho)
{
// Compute the flags for the target shell environment.
int flags = 0;
@@ -2294,6 +2295,10 @@ std::string cmLocalGenerator::EscapeForShell(const char* str, bool makeVars)
{
flags |= cmsysSystem_Shell_Flag_AllowMakeVariables;
}
+ if(forEcho)
+ {
+ flags |= cmsysSystem_Shell_Flag_EchoWindows;
+ }
// Compute the buffer size needed.
int size = (this->WindowsShell ?