Skip to content

make cmake profiles selectable #23

@jshjs11

Description

@jshjs11

This is a really great tool for cmake projects!
Could you make for us to select a one profile between multiple cmake profiles such as the following example?

e.g.) It would be very useful if we can select 'cmake profile A' or 'B' in the command palette.

"cmake": [
    {
        "name": "cmake profile A"
        "build_folder": "$folder/build-A",
        "env": {
            "CC": "clang",
            "CXX": "clang++",
            "ENV_A": "AAA",
        },
        "command_line_overrides":
        {
            "CMAKE_BUILD_TYPE": "Debug",
            "CMAKE_EXPORT_COMPILE_COMMANDS": true,
        },
        "cmake_debug": true,
    },
    {
        "name": "cmake profile B"
        "build_folder": "$folder/build-B",
        "env": {
            "CC": "/opt/local/bin/arm-none-eabi-gcc",
            "CXX": "/opt/local/bin/arm-none-eabi-g++",
            "ENV_B": "BBB",
        },
        "command_line_overrides":
        {
            "CMAKE_BUILD_TYPE": "Debug",
            "CMAKE_EXPORT_COMPILE_COMMANDS": true,
            "CMAKE_TOOLCHAIN_FILE": "/opt/local/share/arm_toolchain.cmake",
        },
        "cmake_debug": true,
    },
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions