summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-04-11 16:51:20 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-04-11 16:51:20 (GMT)
commit535acdc7a093c44c2d052247d0bfdb90e9c279a0 (patch)
tree80d5ba7eb2fd31f5f5fe26bdf1c17f125b18229e /Source/cmLocalUnixMakefileGenerator3.cxx
parentacf33ba191156c65682166f31a01e5d184b482ed (diff)
downloadCMake-535acdc7a093c44c2d052247d0bfdb90e9c279a0.zip
CMake-535acdc7a093c44c2d052247d0bfdb90e9c279a0.tar.gz
CMake-535acdc7a093c44c2d052247d0bfdb90e9c279a0.tar.bz2
ENH: some performance optimizations
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 303470f..9ae5439 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -709,10 +709,8 @@ cmLocalUnixMakefileGenerator3
std::string
cmLocalUnixMakefileGenerator3::GetRelativeTargetDirectory(cmTarget& target)
{
- std::string dir = this->Makefile->GetStartOutputDirectory();
- dir += "/";
+ std::string dir = this->HomeRelativeOutputPath;
dir += this->GetTargetDirectory(target);
- dir = cmSystemTools::RelativePath(this->Makefile->GetHomeOutputDirectory(), dir.c_str());
return this->Convert(dir.c_str(),NONE,MAKEFILE);
}
@@ -907,6 +905,7 @@ cmLocalUnixMakefileGenerator3::AppendEcho(std::vector<std::string>& commands,
// Echo one line at a time.
std::string line;
+ line.reserve(200);
for(const char* c = text;; ++c)
{
if(*c == '\n' || *c == '\0')