diff options
author | Alex Neundorf <neundorf@kde.org> | 2016-02-23 21:37:44 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2016-02-23 21:37:44 (GMT) |
commit | 84ccd4f7461ac2c2ee471a4d77f3e184c676c276 (patch) | |
tree | 8c608881dff41ab5f97c3d86a4bab58ec8e5b4bd /Source/cmExtraCodeBlocksGenerator.h | |
parent | 7a45d91dc4dcbf52a576cca37878bc5c37f293f3 (diff) | |
download | CMake-84ccd4f7461ac2c2ee471a4d77f3e184c676c276.zip CMake-84ccd4f7461ac2c2ee471a4d77f3e184c676c276.tar.gz CMake-84ccd4f7461ac2c2ee471a4d77f3e184c676c276.tar.bz2 |
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.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.h b/Source/cmExtraCodeBlocksGenerator.h index 0c3846d..4abfa7e 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 + ); }; |