Skip to content

Commit

Permalink
build: simplify CMakePresets.json (#62)
Browse files Browse the repository at this point in the history
Signed-off-by: msclock <msclock@qq.com>
  • Loading branch information
msclock authored Mar 1, 2024
1 parent c15a740 commit 8032f3b
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 136 deletions.
87 changes: 19 additions & 68 deletions CMakePresets.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": 3,
"version": 6,
"configurePresets": [
{
"name": "base",
"name": "default",
"displayName": "Basic Config",
"description": "Basic build using Ninja generator",
"generator": "Ninja",
Expand Down Expand Up @@ -112,7 +112,7 @@
"name": "x64-Debug-MSVC",
"description": "MSVC for x64 (Debug)",
"inherits": [
"base",
"default",
"x64",
"Debug",
"MSVC"
Expand All @@ -122,7 +122,7 @@
"name": "x64-Release-MSVC",
"description": "MSVC for x64 (Release)",
"inherits": [
"base",
"default",
"x64",
"Release",
"MSVC"
Expand All @@ -132,7 +132,7 @@
"name": "x64-Debug-Clang",
"description": "Clang/LLVM for x64 (Debug)",
"inherits": [
"base",
"default",
"x64",
"Debug",
"Clang"
Expand All @@ -142,7 +142,7 @@
"name": "x64-Release-Clang",
"description": "Clang/LLVM for x64 (Release)",
"inherits": [
"base",
"default",
"x64",
"Release",
"Clang"
Expand All @@ -152,7 +152,7 @@
"name": "x64-Debug-ClangCL",
"description": "Clang/LLVM for x64 (Debug)",
"inherits": [
"base",
"default",
"x64",
"Debug",
"ClangCL"
Expand All @@ -162,7 +162,7 @@
"name": "x64-Release-ClangCL",
"description": "ClangCL/LLVM for x64 (Release)",
"inherits": [
"base",
"default",
"x64",
"Release",
"ClangCL"
Expand All @@ -172,7 +172,7 @@
"name": "x64-Debug-GNUC",
"description": "GNUC for x64 (Debug)",
"inherits": [
"base",
"default",
"x64",
"Debug",
"GNUC"
Expand All @@ -182,81 +182,32 @@
"name": "x64-Release-GNUC",
"description": "GNUC for x64 (Release)",
"inherits": [
"base",
"default",
"x64",
"Release",
"GNUC"
]
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default"
}
],
"testPresets": [
{
"name": "base",
"name": "default",
"configurePreset": "default",
"output": {
"outputOnFailure": true
},
"hidden": true,
"execution": {
"noTestsAction": "error",
"stopOnFailure": true,
"timeout": 180,
"jobs": 8
}
},
{
"name": "x64-Debug-MSVC",
"configurePreset": "x64-Debug-MSVC",
"inherits": [
"base"
]
},
{
"name": "x64-Release-MSVC",
"configurePreset": "x64-Release-MSVC",
"inherits": [
"base"
]
},
{
"name": "x64-Debug-Clang",
"configurePreset": "x64-Debug-Clang",
"inherits": [
"base"
]
},
{
"name": "x64-Release-Clang",
"configurePreset": "x64-Release-Clang",
"inherits": [
"base"
]
},
{
"name": "x64-Debug-ClangCL",
"configurePreset": "x64-Debug-ClangCL",
"inherits": [
"base"
]
},
{
"name": "x64-Release-ClangCL",
"configurePreset": "x64-Release-ClangCL",
"inherits": [
"base"
]
},
{
"name": "x64-Debug-GNUC",
"configurePreset": "x64-Debug-GNUC",
"inherits": [
"base"
]
},
{
"name": "x64-Release-GNUC",
"configurePreset": "x64-Release-GNUC",
"inherits": [
"base"
]
}
]
}
87 changes: 19 additions & 68 deletions template/CMakePresets.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"version": 3,
"version": 6,
"configurePresets": [
{
"name": "base",
"name": "default",
"displayName": "Basic Config",
"description": "Basic build using Ninja generator",
"generator": "Ninja",
Expand Down Expand Up @@ -112,7 +112,7 @@
"name": "x64-Debug-MSVC",
"description": "MSVC for x64 (Debug)",
"inherits": [
"base",
"default",
"x64",
"Debug",
"MSVC"
Expand All @@ -122,7 +122,7 @@
"name": "x64-Release-MSVC",
"description": "MSVC for x64 (Release)",
"inherits": [
"base",
"default",
"x64",
"Release",
"MSVC"
Expand All @@ -132,7 +132,7 @@
"name": "x64-Debug-Clang",
"description": "Clang/LLVM for x64 (Debug)",
"inherits": [
"base",
"default",
"x64",
"Debug",
"Clang"
Expand All @@ -142,7 +142,7 @@
"name": "x64-Release-Clang",
"description": "Clang/LLVM for x64 (Release)",
"inherits": [
"base",
"default",
"x64",
"Release",
"Clang"
Expand All @@ -152,7 +152,7 @@
"name": "x64-Debug-ClangCL",
"description": "Clang/LLVM for x64 (Debug)",
"inherits": [
"base",
"default",
"x64",
"Debug",
"ClangCL"
Expand All @@ -162,7 +162,7 @@
"name": "x64-Release-ClangCL",
"description": "ClangCL/LLVM for x64 (Release)",
"inherits": [
"base",
"default",
"x64",
"Release",
"ClangCL"
Expand All @@ -172,7 +172,7 @@
"name": "x64-Debug-GNUC",
"description": "GNUC for x64 (Debug)",
"inherits": [
"base",
"default",
"x64",
"Debug",
"GNUC"
Expand All @@ -182,81 +182,32 @@
"name": "x64-Release-GNUC",
"description": "GNUC for x64 (Release)",
"inherits": [
"base",
"default",
"x64",
"Release",
"GNUC"
]
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default"
}
],
"testPresets": [
{
"name": "base",
"name": "default",
"configurePreset": "default",
"output": {
"outputOnFailure": true
},
"hidden": true,
"execution": {
"noTestsAction": "error",
"stopOnFailure": true,
"timeout": 180,
"jobs": 8
}
},
{
"name": "x64-Debug-MSVC",
"configurePreset": "x64-Debug-MSVC",
"inherits": [
"base"
]
},
{
"name": "x64-Release-MSVC",
"configurePreset": "x64-Release-MSVC",
"inherits": [
"base"
]
},
{
"name": "x64-Debug-Clang",
"configurePreset": "x64-Debug-Clang",
"inherits": [
"base"
]
},
{
"name": "x64-Release-Clang",
"configurePreset": "x64-Release-Clang",
"inherits": [
"base"
]
},
{
"name": "x64-Debug-ClangCL",
"configurePreset": "x64-Debug-ClangCL",
"inherits": [
"base"
]
},
{
"name": "x64-Release-ClangCL",
"configurePreset": "x64-Release-ClangCL",
"inherits": [
"base"
]
},
{
"name": "x64-Debug-GNUC",
"configurePreset": "x64-Debug-GNUC",
"inherits": [
"base"
]
},
{
"name": "x64-Release-GNUC",
"configurePreset": "x64-Release-GNUC",
"inherits": [
"base"
]
}
]
}

0 comments on commit 8032f3b

Please sign in to comment.