CodeBlocks: generate parallel project files (make -j)

This is done the same way as for Eclipse: cmake tries to determine
the number of CPUs, and then adds the respective -jN to the make
invocations in the project file.

Alex
This commit is contained in:
Alex Neundorf
2016-02-23 22:37:44 +01:00
parent 7a45d91dc4
commit 84ccd4f746
3 changed files with 44 additions and 13 deletions
+5 -2
View File
@@ -54,13 +54,16 @@ private:
std::string GetCBCompilerId(const cmMakefile* mf);
int GetCBTargetType(cmGeneratorTarget* target);
std::string BuildMakeCommand(const std::string& make, const char* makefile,
const std::string& target);
const std::string& target,
const std::string& makeFlags);
void AppendTarget(cmGeneratedFileStream& fout,
const std::string& targetName,
cmGeneratorTarget* target,
const char* make,
const cmLocalGenerator* lg,
const char* compiler);
const char* compiler,
const std::string& makeFlags
);
};