summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeLiteGenerator.cxx
diff options
context:
space:
mode:
authorEran Ifrah <eran.ifrah@gmail.com>2014-01-30 18:16:48 (GMT)
committerBrad King <brad.king@kitware.com>2014-02-03 15:56:48 (GMT)
commit75c051139a73b65d3278c1613e984584155bbef3 (patch)
tree075b81cff3ca4622e72e240ee084687d64261e9e /Source/cmExtraCodeLiteGenerator.cxx
parent078e9e2c397ba25630756bc5c1c28c7262a385fb (diff)
downloadCMake-75c051139a73b65d3278c1613e984584155bbef3.zip
CMake-75c051139a73b65d3278c1613e984584155bbef3.tar.gz
CMake-75c051139a73b65d3278c1613e984584155bbef3.tar.bz2
CodeLite: Use make -jN switch when generating Unix/MinGW makefiles
Diffstat (limited to 'Source/cmExtraCodeLiteGenerator.cxx')
-rw-r--r--Source/cmExtraCodeLiteGenerator.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmExtraCodeLiteGenerator.cxx b/Source/cmExtraCodeLiteGenerator.cxx
index b156691..ff84fb7 100644
--- a/Source/cmExtraCodeLiteGenerator.cxx
+++ b/Source/cmExtraCodeLiteGenerator.cxx
@@ -449,8 +449,12 @@ cmExtraCodeLiteGenerator::GetBuildCommand(const cmMakefile* mf) const
buildCommand = make;
}
else if ( generator == "MinGW Makefiles" ||
- generator == "Unix Makefiles" ||
- generator == "Ninja" )
+ generator == "Unix Makefiles" )
+ {
+ ss << make << " -j " << this->CpuCount;
+ buildCommand = ss.str();
+ }
+ else if ( generator == "Ninja" )
{
ss << make;
buildCommand = ss.str();