cmake: Prefer named constant for jobs

This improves readability.
This commit is contained in:
Tyler Yankee committed 2026-01-29 11:33:27 -05:00
1 parent 68bd63c856
commit c2b773cb97
1 file changed
+1 -1
+1 -1
View File
@@ -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;