Skip to content

Commit e9f305a

Browse files
committed
Deduplicate coverage preset variable
1 parent ab84626 commit e9f305a

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

cmake-init/templates/common/CMakePresets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@
6464
"inherits": "ci-unix",
6565
"hidden": true,
6666
"cacheVariables": {
67+
"ENABLE_COVERAGE": "ON",
6768
"CMAKE_BUILD_TYPE": "Coverage",
6869
"CMAKE_C{if cpp}XX{end}_FLAGS_COVERAGE": "-Og -g --coverage -fkeep-inline-functions -fkeep-static-functions",
6970
"CMAKE_EXE_LINKER_FLAGS_COVERAGE": "--coverage",
@@ -74,7 +75,6 @@
7475
"name": "ci-coverage",
7576
"inherits": ["coverage-unix", "dev-mode"],
7677
"cacheVariables": {
77-
"ENABLE_COVERAGE": "ON",
7878
"COVERAGE_HTML_COMMAND": ""
7979
}
8080
},

cmake-init/templates/common/CMakeUserPresets.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717
{
1818
"name": "dev-coverage",
1919
"binaryDir": "${sourceDir}/build/coverage",
20-
"inherits": ["dev-mode", "coverage-unix"],
21-
"cacheVariables": {
22-
"ENABLE_COVERAGE": "ON"
23-
}
20+
"inherits": ["dev-mode", "coverage-unix"]
2421
}
2522
]
2623
}

0 commit comments

Comments
 (0)