diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-10-18 23:16:02 +0200 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-10-20 08:48:20 -0400 |
commit | effa6c8343fb871574cb5471de5eb4c1705dd334 (patch) | |
tree | 9349fd3223bf5d9369e80eace97ad04209c52bd1 /Source/cmExtraCodeLiteGenerator.cxx | |
parent | fb461cacba5afe98fd9871d4b8ab0500d825ad5a (diff) | |
download | cmake-effa6c8343fb871574cb5471de5eb4c1705dd334.tar.gz |
fix more issues reported by clang-tidy
Diffstat (limited to 'Source/cmExtraCodeLiteGenerator.cxx')
-rw-r--r-- | Source/cmExtraCodeLiteGenerator.cxx | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmExtraCodeLiteGenerator.cxx b/Source/cmExtraCodeLiteGenerator.cxx index 360c85237b..efce263cf7 100644 --- a/Source/cmExtraCodeLiteGenerator.cxx +++ b/Source/cmExtraCodeLiteGenerator.cxx @@ -430,17 +430,19 @@ void cmExtraCodeLiteGenerator::CreateProjectSourceEntries( xml.StartElement("General"); std::string outputPath = mf->GetSafeDefinition("EXECUTABLE_OUTPUT_PATH"); - if (!outputPath.empty()) + if (!outputPath.empty()) { xml.Attribute("OutputFile", outputPath + "/$(ProjectName)"); - else + } else { xml.Attribute("OutputFile", "$(IntermediateDirectory)/$(ProjectName)"); + } xml.Attribute("IntermediateDirectory", "./"); xml.Attribute("Command", "./$(ProjectName)"); xml.Attribute("CommandArguments", ""); - if (!outputPath.empty()) + if (!outputPath.empty()) { xml.Attribute("WorkingDirectory", outputPath); - else + } else { xml.Attribute("WorkingDirectory", "$(IntermediateDirectory)"); + } xml.Attribute("PauseExecWhenProcTerminates", "yes"); xml.EndElement(); // General |