summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-02-03 16:11:09 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2014-02-03 16:11:09 (GMT)
commit7ab204509e04df18cb50fdb77deb48b5521a8d63 (patch)
treedfae8df0acd8c79726aacc11b8f45f7452269f24
parentb90d63cbfcfd00b98d519f301f93abb3138a14cb (diff)
parent75c051139a73b65d3278c1613e984584155bbef3 (diff)
downloadCMake-7ab204509e04df18cb50fdb77deb48b5521a8d63.zip
CMake-7ab204509e04df18cb50fdb77deb48b5521a8d63.tar.gz
CMake-7ab204509e04df18cb50fdb77deb48b5521a8d63.tar.bz2
Merge topic 'codelite-generator-multi-jobs-bug-fix'
75c05113 CodeLite: Use make -jN switch when generating Unix/MinGW makefiles
-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();