diff options
author | Brad King <brad.king@kitware.com> | 2007-03-08 18:05:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2007-03-08 18:05:02 (GMT) |
commit | fd3688fa7260e06c9bd8e23bb6f08e430bff4301 (patch) | |
tree | 77a6792f01de19a593d7125f2999aa45f655efe1 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 7157743d69761c433af5ecbca37dede63c0603af (diff) | |
download | CMake-fd3688fa7260e06c9bd8e23bb6f08e430bff4301.zip CMake-fd3688fa7260e06c9bd8e23bb6f08e430bff4301.tar.gz CMake-fd3688fa7260e06c9bd8e23bb6f08e430bff4301.tar.bz2 |
ENH: Fixed recursive make call target escaping for Borland to support SubDirSpaces test.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index a9c9c68..2d45ee9 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -53,6 +53,7 @@ cmLocalUnixMakefileGenerator3::cmLocalUnixMakefileGenerator3() this->SkipAssemblySourceRules = false; this->NativeEchoCommand = "@echo "; this->NativeEchoWindows = true; + this->MakeCommandEscapeTargetTwice = false; } //---------------------------------------------------------------------------- @@ -1751,6 +1752,12 @@ cmLocalUnixMakefileGenerator3 // The target may have been written with windows paths. cmSystemTools::ConvertToOutputSlashes(tgt2); + // Escape one extra time if the make tool requires it. + if(this->MakeCommandEscapeTargetTwice) + { + tgt2 = this->EscapeForShell(tgt2.c_str(), true, false); + } + // The target name is now a string that should be passed verbatim // on the command line. cmd += this->EscapeForShell(tgt2.c_str(), true, false); |