mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-09 15:20:56 -06:00
CodeLite: Do not pass -j argument with CPU count 0
Fixes: #15054, #16727
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user