Commit aa6437e3 authored by Brad King's avatar Brad King Committed by Kitware Robot

Merge topic 'codelite_make_j_0'

7d6639bf CodeLite: Do not pass -j argument with CPU count 0
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !4067
parents ba773cfe 7d6639bf
......@@ -635,7 +635,10 @@ std::string cmExtraCodeLiteGenerator::GetBuildCommand(
if (generator == "NMake Makefiles" || generator == "Ninja") {
ss << make;
} else if (generator == "MinGW Makefiles" || generator == "Unix Makefiles") {
ss << make << " -f$(ProjectPath)/Makefile -j " << this->CpuCount;
ss << make << " -f$(ProjectPath)/Makefile";
if (this->CpuCount > 0) {
ss << " -j " << this->CpuCount;
}
}
if (!targetName.empty()) {
ss << " " << targetName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment