Skip to content

Commit 3665ad9

Browse files
committed
Default DISCOVERY_MODE to PRE_TEST on Mac
https://gitlab.kitware.com/cmake/cmake/-/issues/21845 Issue: #120
1 parent 89cc4a8 commit 3665ad9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cmake-init/templates/common/CMakePresets.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,10 @@
124124
"name": "ci-darwin",
125125
"inherits": ["flags-appleclang", "ci-std"],
126126
"generator": "Xcode",
127-
"hidden": true
127+
"hidden": true{% if pm %},
128+
"cacheVariables": {
129+
"CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE": "PRE_TEST"
130+
}{% end %}
128131
},
129132
{
130133
"name": "ci-win64",

0 commit comments

Comments
 (0)