mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-06 04:03:27 +03:00
cmake: Prefer named constant for jobs
This improves readability.
This commit is contained in:
1 parent
68bd63c856
commit
c2b773cb97
1 file changed
+1
-1
@@ -428,7 +428,7 @@ int do_cmake(int ac, char const* const* av)
|
||||
int extract_job_number(std::string const& command,
|
||||
std::string const& jobString)
|
||||
{
|
||||
int jobs = -1;
|
||||
int jobs = cmake::NO_BUILD_PARALLEL_LEVEL;
|
||||
unsigned long numJobs = 0;
|
||||
if (jobString.empty()) {
|
||||
jobs = cmake::DEFAULT_BUILD_PARALLEL_LEVEL;
|
||||
|
||||
Reference in new issue
Block a user