summaryrefslogtreecommitdiff
path: root/Source/cmExtraCodeBlocksGenerator.h
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2016-02-23 22:37:44 +0100
committerAlex Neundorf <neundorf@kde.org>2016-02-23 22:37:44 +0100
commit84ccd4f7461ac2c2ee471a4d77f3e184c676c276 (patch)
tree8c608881dff41ab5f97c3d86a4bab58ec8e5b4bd /Source/cmExtraCodeBlocksGenerator.h
parent7a45d91dc4dcbf52a576cca37878bc5c37f293f3 (diff)
downloadcmake-84ccd4f7461ac2c2ee471a4d77f3e184c676c276.tar.gz
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
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.h')
-rw-r--r--Source/cmExtraCodeBlocksGenerator.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.h b/Source/cmExtraCodeBlocksGenerator.h
index 0c3846d35b..4abfa7e936 100644
--- a/Source/cmExtraCodeBlocksGenerator.h
+++ b/Source/cmExtraCodeBlocksGenerator.h
@@ -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
+ );
};