From a7ecfa8ad2691059ba14f8913d35d6b9bc010cdd Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Sat, 7 Jan 2023 16:09:29 +0100
Subject: [PATCH] [cmake] Supply config in msvc presets.

---
 CMakePresets.json | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/CMakePresets.json b/CMakePresets.json
index 49cf3823631..d3bf97e4090 100644
--- a/CMakePresets.json
+++ b/CMakePresets.json
@@ -16,7 +16,8 @@
       "hidden": true,
       "inherits": "_binary_dir",
       "cacheVariables": {
-        "CMAKE_BUILD_TYPE": "Release"
+        "CMAKE_BUILD_TYPE": "Release",
+        "CMAKE_CONFIGURATION_TYPES": "Release"
       }
     },
     {
@@ -24,7 +25,8 @@
       "hidden": true,
       "inherits": "_binary_dir",
       "cacheVariables": {
-        "CMAKE_BUILD_TYPE": "Debug"
+        "CMAKE_BUILD_TYPE": "Debug",
+        "CMAKE_CONFIGURATION_TYPES": "Debug"
       }
     },
     {
@@ -266,17 +268,20 @@
     {
       "name": "msvc-release",
       "inherits": "_win",
-      "configurePreset": "msvc-release"
+      "configurePreset": "msvc-release",
+      "configuration": "Release"
     },
     {
       "name": "msvc-debug",
       "inherits": "_win",
-      "configurePreset": "msvc-debug"
+      "configurePreset": "msvc-debug",
+      "configuration": "Debug"
     },
     {
       "name": "msvc-release-gui",
       "inherits": "_win",
       "configurePreset": "msvc-release-gui",
+      "configuration": "Release",
       "targets": [
         "DataExplorer"
       ]
@@ -285,6 +290,7 @@
       "name": "msvc-debug-gui",
       "inherits": "_win",
       "configurePreset": "msvc-debug-gui",
+      "configuration": "Debug",
       "targets": [
         "DataExplorer"
       ]
@@ -375,6 +381,7 @@
     {
       "name": "msvc-release",
       "configurePreset": "msvc-release",
+      "configuration": "Release",
       "inherits": [
         "release"
       ]
@@ -382,6 +389,7 @@
     {
       "name": "msvc-release-large",
       "configurePreset": "msvc-release",
+      "configuration": "Release",
       "inherits": [
         "release-large"
       ]
-- 
GitLab