vscode-cmake-tools icon indicating copy to clipboard operation
vscode-cmake-tools copied to clipboard

Ninja multi-config: build all at once?

Open LumiereDeLOmbre opened this issue 3 years ago • 1 comments

Hi, I can't build all the targets of my CMAKE_CONFIGURATION_TYPES all at once. I wonder if I miss something or if it is a normal situation:

Under extension setting: Cmake generator: Ninja Multi-Config

in my CMAKE: set(CMAKE_CONFIGURATION_TYPES "Debug" "Release") I also tried with set(CMAKE_CONFIGURATION_TYPES "Debug;Release")

But only the current build variant selected by the extension gets built (Debug, Release..) in the status bar.

Maybe CMake should read:multi. It should build Debug, then Release when clicking the build icon..

Or am I mistaken?

Thanks :)

LumiereDeLOmbre avatar Jul 10 '22 06:07 LumiereDeLOmbre

That is by design. The expectation is you only run one type at a time. So this is not a feature that we plan to add.

elahehrashedi avatar Jul 18 '22 16:07 elahehrashedi