Skip to content

Commit 7d1226d

Browse files
committed
Add Linux C++20 CMake presets
1 parent da81cf0 commit 7d1226d

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

CMakePresets.json

+32
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,38 @@
2929
"CMAKE_BUILD_TYPE": "Release",
3030
"CMAKE_CXX_STANDARD": "20"
3131
}
32+
},
33+
{
34+
"name": "linux-base",
35+
"hidden": true,
36+
"generator": "Unix Makefiles",
37+
"cacheVariables": {
38+
"CMAKE_CXX_VISIBILITY_PRESET": "hidden",
39+
"CMAKE_VISIBILITY_INLINES_HIDDEN": "ON",
40+
"FMT_DOC": "OFF",
41+
"FMT_PEDANTIC": "ON",
42+
"FMT_WERROR": "ON"
43+
}
44+
},
45+
{
46+
"name": "linux-release-cpp20",
47+
"inherits": "linux-base",
48+
"displayName": "Linux Release C++20",
49+
"binaryDir": "${sourceDir}/out/${presetName}",
50+
"cacheVariables": {
51+
"CMAKE_BUILD_TYPE": "Release",
52+
"CMAKE_CXX_STANDARD": "20"
53+
}
54+
},
55+
{
56+
"name": "linux-debug-cpp20",
57+
"inherits": "linux-base",
58+
"displayName": "Linux Debug C++20",
59+
"binaryDir": "${sourceDir}/out/${presetName}",
60+
"cacheVariables": {
61+
"CMAKE_BUILD_TYPE": "Debug",
62+
"CMAKE_CXX_STANDARD": "20"
63+
}
3264
}
3365
]
3466
}

0 commit comments

Comments
 (0)