I’ve searched for this but didn’t find the solution.
Is there any way of changing the active solution configuration of visual studio?
When I open the visual studio solution I want to have RelWithDebugInfo active instead of Debug.
I’ve tried the CMAKE_BUILD_TYPE var but it is ignored when using ‘Visual Studio 16 2019 generator’ (at least)
CMAKE_BUILD_TYPE only affects single-config generators and VIsual Studio is not one of them. There’s probably some way to control it, but CMake doesn’t expose an option. I suggest filing an issue.