diff options
author | Brad King <brad.king@kitware.com> | 2016-10-20 12:51:09 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-10-20 12:51:09 (GMT) |
commit | a5f4463eedc31f6f552b7f7837212661349898df (patch) | |
tree | 201aa79bedda91071ee8710d1b2b3f69f3e19047 /Source/cmExtraCodeLiteGenerator.cxx | |
parent | 92c3cab223845ca83533bba7b6d73f6180223935 (diff) | |
parent | effa6c8343fb871574cb5471de5eb4c1705dd334 (diff) | |
download | CMake-a5f4463eedc31f6f552b7f7837212661349898df.zip CMake-a5f4463eedc31f6f552b7f7837212661349898df.tar.gz CMake-a5f4463eedc31f6f552b7f7837212661349898df.tar.bz2 |
Merge topic 'clang-tidy'
effa6c83 fix more issues reported by clang-tidy
fb461cac silence selected clang-tidy violations
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 6f48935..e79f763 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 |