diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-09-07 21:14:30 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2016-09-19 19:36:13 (GMT) |
commit | 1825f876a7467a97b1cb3f6dd60f95c173d9e61b (patch) | |
tree | 0d70f9ac13c2886f0ec77e2156956b05c7067e3e /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 25c39ac28b42234d08c3906ce24ac739f6111506 (diff) | |
download | CMake-1825f876a7467a97b1cb3f6dd60f95c173d9e61b.zip CMake-1825f876a7467a97b1cb3f6dd60f95c173d9e61b.tar.gz CMake-1825f876a7467a97b1cb3f6dd60f95c173d9e61b.tar.bz2 |
Convert: Move access to BinaryDirectory out of loops
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index 59dc445..6fd319e 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -581,12 +581,12 @@ void cmLocalUnixMakefileGenerator3::WriteMakeRule( } else { // Split dependencies into multiple rule lines. This allows for // very long dependency lists even on older make implementations. + std::string binDir = this->GetBinaryDirectory(); for (std::vector<std::string>::const_iterator dep = depends.begin(); dep != depends.end(); ++dep) { replace = *dep; replace = cmSystemTools::ConvertToOutputPath( - this->ConvertToRelativePath(this->GetBinaryDirectory(), replace) - .c_str()); + this->ConvertToRelativePath(binDir, replace).c_str()); os << cmMakeSafe(tgt) << space << ": " << cmMakeSafe(replace) << "\n"; } } |