mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-14 02:08:27 +08:00
@@ -3164,7 +3164,9 @@ int cmake::Build(int jobs, std::string dir, std::vector<std::string> targets,
|
||||
this->UnprocessedPresetEnvironment = expandedPreset->Environment;
|
||||
this->ProcessPresetEnvironment();
|
||||
|
||||
if (jobs == cmake::DEFAULT_BUILD_PARALLEL_LEVEL && expandedPreset->Jobs) {
|
||||
if ((jobs == cmake::DEFAULT_BUILD_PARALLEL_LEVEL ||
|
||||
jobs == cmake::NO_BUILD_PARALLEL_LEVEL) &&
|
||||
expandedPreset->Jobs) {
|
||||
jobs = *expandedPreset->Jobs;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user