summaryrefslogtreecommitdiff
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-10-20 08:51:09 -0400
committerCMake Topic Stage <kwrobot@kitware.com>2016-10-20 08:51:09 -0400
commita5f4463eedc31f6f552b7f7837212661349898df (patch)
tree201aa79bedda91071ee8710d1b2b3f69f3e19047 /Source/cmNinjaTargetGenerator.cxx
parent92c3cab223845ca83533bba7b6d73f6180223935 (diff)
parenteffa6c8343fb871574cb5471de5eb4c1705dd334 (diff)
downloadcmake-a5f4463eedc31f6f552b7f7837212661349898df.tar.gz
Merge topic 'clang-tidy'
effa6c83 fix more issues reported by clang-tidy fb461cac silence selected clang-tidy violations
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 514fbeb86b..b48387c004 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -275,8 +275,9 @@ std::string cmNinjaTargetGenerator::GetPreprocessedFilePath(
objName.substr(0, objName.size() - objExt.size()) + "-pp." + ppExt;
std::string path = this->LocalGenerator->GetHomeRelativeOutputPath();
- if (!path.empty())
+ if (!path.empty()) {
path += "/";
+ }
path += this->LocalGenerator->GetTargetDirectory(this->GeneratorTarget);
path += "/";
path += ppName;
@@ -287,8 +288,9 @@ std::string cmNinjaTargetGenerator::GetDyndepFilePath(
std::string const& lang) const
{
std::string path = this->LocalGenerator->GetHomeRelativeOutputPath();
- if (!path.empty())
+ if (!path.empty()) {
path += "/";
+ }
path += this->LocalGenerator->GetTargetDirectory(this->GeneratorTarget);
path += "/";
path += lang;