summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-04-17 13:11:03 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-04-17 13:11:03 (GMT)
commitd9e2cd258cf96087fffc2fba3321200ce1e19a58 (patch)
tree8043488b8d574f43dfd9e31113cec7459953b69b
parent4c966d90c7a2afaffa97ae3d0d4fbc26b614a2eb (diff)
parentc8e565a06e229e1524df01d965c8b7e7a757ce05 (diff)
downloadCMake-d9e2cd258cf96087fffc2fba3321200ce1e19a58.zip
CMake-d9e2cd258cf96087fffc2fba3321200ce1e19a58.tar.gz
CMake-d9e2cd258cf96087fffc2fba3321200ce1e19a58.tar.bz2
Merge topic 'codelite-simplify'
c8e565a0 CodeLite generator: simplify code a bit
-rw-r--r--Source/cmExtraCodeLiteGenerator.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/Source/cmExtraCodeLiteGenerator.cxx b/Source/cmExtraCodeLiteGenerator.cxx
index 8acc5b4..946d9d2 100644
--- a/Source/cmExtraCodeLiteGenerator.cxx
+++ b/Source/cmExtraCodeLiteGenerator.cxx
@@ -443,26 +443,22 @@ cmExtraCodeLiteGenerator::GetConfigurationName(const cmMakefile* mf) const
std::string
cmExtraCodeLiteGenerator::GetBuildCommand(const cmMakefile* mf) const
{
- std::stringstream ss;
std::string generator = mf->GetSafeDefinition("CMAKE_GENERATOR");
std::string make = mf->GetRequiredDefinition("CMAKE_MAKE_PROGRAM");
std::string buildCommand = make; // Default
- if ( generator == "NMake Makefiles" )
+ if ( generator == "NMake Makefiles" ||
+ generator == "Ninja" )
{
buildCommand = make;
}
else if ( generator == "MinGW Makefiles" ||
generator == "Unix Makefiles" )
{
+ std::stringstream ss;
ss << make << " -j " << this->CpuCount;
buildCommand = ss.str();
}
- else if ( generator == "Ninja" )
- {
- ss << make;
- buildCommand = ss.str();
- }
- return buildCommand;
+ return buildCommand;
}
std::string