Commit 7d6639bf authored by Johnny Jazeix's avatar Johnny Jazeix

CodeLite: Do not pass -j argument with CPU count 0

Fixes: #15054, #16727
parent cbedead9
......@@ -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