summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeLiteGenerator.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-18 21:16:02 (GMT)
committerBrad King <brad.king@kitware.com>2016-10-20 12:48:20 (GMT)
commiteffa6c8343fb871574cb5471de5eb4c1705dd334 (patch)
tree9349fd3223bf5d9369e80eace97ad04209c52bd1 /Source/cmExtraCodeLiteGenerator.cxx
parentfb461cacba5afe98fd9871d4b8ab0500d825ad5a (diff)
downloadCMake-effa6c8343fb871574cb5471de5eb4c1705dd334.zip
CMake-effa6c8343fb871574cb5471de5eb4c1705dd334.tar.gz
CMake-effa6c8343fb871574cb5471de5eb4c1705dd334.tar.bz2
fix more issues reported by clang-tidy
Diffstat (limited to 'Source/cmExtraCodeLiteGenerator.cxx')
-rw-r--r--Source/cmExtraCodeLiteGenerator.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/cmExtraCodeLiteGenerator.cxx b/Source/cmExtraCodeLiteGenerator.cxx
index 360c852..efce263 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