diff options
author | Brad King <brad.king@kitware.com> | 2006-09-21 19:14:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-09-21 19:14:06 (GMT) |
commit | 2459ceb076d7788f7512ef4a2f68e81c43bc271d (patch) | |
tree | b198c9b7a49aed110b2a706f82426e84690dc582 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 0952a96485cad05f68724f0a703758dceb60add9 (diff) | |
download | CMake-2459ceb076d7788f7512ef4a2f68e81c43bc271d.zip CMake-2459ceb076d7788f7512ef4a2f68e81c43bc271d.tar.gz CMake-2459ceb076d7788f7512ef4a2f68e81c43bc271d.tar.bz2 |
BUG: Centralized generation of command line arguments in escaped form. This addresses bug#3786 for several platforms.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index aee3392..a721aba 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -931,16 +931,7 @@ cmLocalUnixMakefileGenerator3 for(unsigned int j=1; j < commandLine.size(); ++j) { cmd += " "; - bool forceOn = cmSystemTools::GetForceUnixPaths(); - if(forceOn && this->WindowsShell) - { - cmSystemTools::SetForceUnixPaths(false); - } - cmd += cmSystemTools::EscapeSpaces(commandLine[j].c_str()); - if(forceOn && this->WindowsShell) - { - cmSystemTools::SetForceUnixPaths(true); - } + cmd += this->EscapeForShell(commandLine[j].c_str()); } commands1.push_back(cmd); } |