Skip to content

Commit e3a6a0d

Browse files
committed
Add build-base CMake preset configuration
1 parent 3714a88 commit e3a6a0d

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

CMakePresets.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,23 +58,35 @@
5858
}
5959
],
6060
"buildPresets": [
61+
{
62+
"name": "build-base",
63+
"hidden": true,
64+
"description": "Shared build settings for all compilers",
65+
"jobs": 0,
66+
"verbose": false,
67+
"inheritConfigureEnvironment": true
68+
},
6169
{
6270
"name": "gcc-RelWithDebInfo",
71+
"inherits": "build-base",
6372
"configurePreset": "gcc-RelWithDebInfo",
6473
"description": "Build using gcc-RelWithDebInfo configuration"
6574
},
6675
{
6776
"name": "gcc-Sanitize",
77+
"inherits": "build-base",
6878
"configurePreset": "gcc-Sanitize",
6979
"description": "Build using gcc-Sanitize configuration"
7080
},
7181
{
7282
"name": "clang-RelWithDebInfo",
83+
"inherits": "build-base",
7384
"configurePreset": "clang-RelWithDebInfo",
7485
"description": "Build using clang-RelWithDebInfo configuration"
7586
},
7687
{
7788
"name": "clang-Sanitize",
89+
"inherits": "build-base",
7890
"configurePreset": "clang-Sanitize",
7991
"description": "Build using clang-Sanitize configuration"
8092
}

0 commit comments

Comments
 (0)