microsoft / vscode-cmake-tools

CMake integration in Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=vector-of-bool.cmake-tools
MIT License
1.43k stars 430 forks source link

Generate the --build-config argument for CTest even for the default test preset scenario #3779

Closed andreeis closed 1 month ago

andreeis commented 1 month ago

Fix for feature request https://github.com/microsoft/vscode-cmake-tools/issues/3602. All is available and already calculated by the extension. The fix is to identify the default scenario and query the driver for the build type, not the preset itself (which, because it is default, does not have the "config" field set).