mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-02 04:02:23 +03:00
1 parent
b3f1a29226
commit
f4c7d44d82
1 file changed
+4
-3
@@ -590,9 +590,10 @@ cmGlobalUnixMakefileGenerator3::GenerateBuildCommand(
|
||||
makeCommand.Add(this->SelectMakeProgram(makeProgram));
|
||||
|
||||
if (jobs != cmake::NO_BUILD_PARALLEL_LEVEL) {
|
||||
makeCommand.Add("-j");
|
||||
if (jobs != cmake::DEFAULT_BUILD_PARALLEL_LEVEL) {
|
||||
makeCommand.Add(std::to_string(jobs));
|
||||
if (jobs == cmake::DEFAULT_BUILD_PARALLEL_LEVEL) {
|
||||
makeCommand.Add("-j");
|
||||
} else {
|
||||
makeCommand.Add("-j" + std::to_string(jobs));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user