From 42f9fea5fe6333c0274f04eccb231235c4bbf406 Mon Sep 17 00:00:00 2001 From: MarcelPiNacy-CVC <169088301+MarcelPiNacy-CVC@users.noreply.github.com> Date: Mon, 3 Feb 2025 11:08:09 +0100 Subject: [PATCH] Change preset declaration order to make VS pick "Development" by default. Enable CMAKE_EXPORT_COMPILE_COMMANDS for Development and Debug. (#8625) --- CMakePresets.json | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/CMakePresets.json b/CMakePresets.json index 833860a877..8fd5880aae 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -20,27 +20,29 @@ "hidden": true }, { - "name": "Debug", + "name": "Development", "inherits": "Common", "cacheVariables": { - "CMAKE_BUILD_TYPE": "Debug" + "CMAKE_BUILD_TYPE": "RelWithDebInfo", + "CMAKE_EXPORT_COMPILE_COMMANDS" : true } }, { - "name": "Development", + "name": "Release", "inherits": "Common", "cacheVariables": { - "CMAKE_BUILD_TYPE": "RelWithDebInfo" + "CMAKE_BUILD_TYPE": "Release" } }, { - "name": "Release", + "name": "Debug", "inherits": "Common", "cacheVariables": { - "CMAKE_BUILD_TYPE": "Release" + "CMAKE_BUILD_TYPE": "Debug", + "CMAKE_EXPORT_COMPILE_COMMANDS" : true } } ]