microsoft / microsoft/vscode-cmake-tools
"--parallel" absent from cmake command
- Dominant language
- TypeScript
- Stars
- 1.7k
- Forks
- 546
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 32
Description
### Discussed in https://github.com/microsoft/vscode-cmake-tools/discussions/4250
Originally posted by **klausholstjacobsen** January 23, 2025
Hello
vscode: 1.96.4
cmake-tools: 1.19.52
cmake 3.28.1
OS: wsl2 ubuntu 22.04
We are two developer using more or less identical vscode setups.
We are however experiencing different cmake behaviour.
We have a cmake project using CMakePresets. In CMakePresets.json there is no "Jobs" attribute.
When I change the "cmake.parallelJobs" setting in vscode I get a cmake command line that reflects that value including "--parallel xx".
My colleague, however, get a cmake build command with no "--parallel xx" argument at all. It doesn't matter what value he chooses or if he removes it entirely from his user settings. It always runs the cmake build command without "--parallel xx".
The only way he can get some kind of "--parallel" argument is by adding "jobs" to his build preset in CMakePresets.json.
Does this ring a bell in this forum what he could've done different than on my setup to provoke this kind of behaviour?
We have even tried to copy his entire user settings json to my installation. But I still get a cmake command that obeys what I have in cmake.parallelJobs
Regards
Klaus
Contributor guide
Research direction
Reproduce the build using cmake.parallelJobs with and without a jobs value in CMakePresets.json, comparing the generated CMake command lines described in the report. Trace how the VS Code setting and preset are combined; done means the behavior is explained and the intended --parallel handling is covered by an appropriate regression test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100