diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-10-18 21:16:02 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-10-20 12:48:20 (GMT) |
commit | effa6c8343fb871574cb5471de5eb4c1705dd334 (patch) | |
tree | 9349fd3223bf5d9369e80eace97ad04209c52bd1 /Source/cmNinjaTargetGenerator.cxx | |
parent | fb461cacba5afe98fd9871d4b8ab0500d825ad5a (diff) | |
download | CMake-effa6c8343fb871574cb5471de5eb4c1705dd334.zip CMake-effa6c8343fb871574cb5471de5eb4c1705dd334.tar.gz CMake-effa6c8343fb871574cb5471de5eb4c1705dd334.tar.bz2 |
fix more issues reported by clang-tidy
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 1ac6cd4..ff4098b 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -274,8 +274,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; @@ -286,8 +287,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; |