Skip to content

Commit

Permalink
Change preset declaration order to make VS pick "Development" by defa…
Browse files Browse the repository at this point in the history
…ult. Enable CMAKE_EXPORT_COMPILE_COMMANDS for Development and Debug. (#8625)
  • Loading branch information
MarcelPiNacy-CVC authored Feb 3, 2025
1 parent 083b916 commit 42f9fea
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
]
Expand Down

0 comments on commit 42f9fea

Please sign in to comment.