diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2014-04-15 18:13:42 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2014-04-15 18:13:42 (GMT) |
commit | c8e565a06e229e1524df01d965c8b7e7a757ce05 (patch) | |
tree | adf35f8ab47eca61a6d8fed7a881718bd229f382 /Source/cmExtraCodeLiteGenerator.cxx | |
parent | 8472ef243ffc9988ea8fb83cbc7acdf3f0daa239 (diff) | |
download | CMake-c8e565a06e229e1524df01d965c8b7e7a757ce05.zip CMake-c8e565a06e229e1524df01d965c8b7e7a757ce05.tar.gz CMake-c8e565a06e229e1524df01d965c8b7e7a757ce05.tar.bz2 |
CodeLite generator: simplify code a bit
Diffstat (limited to 'Source/cmExtraCodeLiteGenerator.cxx')
-rw-r--r-- | Source/cmExtraCodeLiteGenerator.cxx | 12 |
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 |