Browse Source

CodeLite: Use make -jN switch when generating Unix/MinGW makefiles

Eran Ifrah 11 years ago
parent
commit
75c051139a
1 changed files with 6 additions and 2 deletions
  1. 6 2
      Source/cmExtraCodeLiteGenerator.cxx

+ 6 - 2
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();