Skip to content

Commit

Permalink
Cmake: Add "jobs" parameter to cmake presets
Browse files Browse the repository at this point in the history
  • Loading branch information
Dasperal committed Aug 11, 2024
1 parent 9f7e95d commit 8648b8c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
"configurePreset": "ci-watcom-dev",
"displayName": "Watcom (CI|Dev)",
"description": "Cmake build configuration for CI Dev builds using Watcom",
"jobs": 4,
"condition": {
"type": "equals",
"lhs": "$penv{CI}",
Expand All @@ -101,6 +102,7 @@
"configurePreset": "ci-watcom-release",
"displayName": "Watcom (CI|Release)",
"description": "Cmake build configuration for CI Release builds using Watcom",
"jobs": 4,
"condition": {
"type": "equals",
"lhs": "$penv{CI}",
Expand All @@ -111,7 +113,8 @@
"name": "local-watcom-release",
"configurePreset": "local-watcom-release",
"displayName": "Watcom (Local|Release)",
"description": "Cmake build configuration for Local Release builds using Watcom"
"description": "Cmake build configuration for Local Release builds using Watcom",
"jobs": 4
}
],
"packagePresets": [
Expand Down
16 changes: 16 additions & 0 deletions CMakeUserPresets.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,21 @@
"description": "Watcom configuration for Clion Release builds",
"binaryDir": "${sourceDir}/build-release"
}
],
"buildPresets": [
{
"name": "clion-watcom-dev",
"configurePreset": "clion-watcom-dev",
"displayName": "Watcom (CI|Dev)",
"description": "Cmake build configuration for Clion Dev builds using Watcom toolchain",
"jobs": 14
},
{
"name": "clion-watcom-release",
"configurePreset": "clion-watcom-release",
"displayName": "Watcom (CI|Release)",
"description": "Cmake build configuration for Clion Release builds using Watcom toolchain",
"jobs": 14
}
]
}

0 comments on commit 8648b8c

Please sign in to comment.