Skip to content

Build folder per board and variant #174

@Slion

Description

@Slion

Is it possible to set a build folder per board and per variant?

Like:
build/picow/rel
build/picow/deb
build/pico2w/rel
build/pico2w/deb

So looking into the source I came across this:

"cmake.buildDirectory"

Sure enough you can already override the build directory from your settings.json by adding something like:

"cmake.buildDirectory": "${workspaceFolder}/build/pico2w/debug",

Now if only we could define this variable from the board and variant.

The build folder is also hardcode in the Ninja task in tasks.json so you will have to replace it with something like:

"args": ["-C", "${workspaceFolder}/build/pico2w/debug"],

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions