Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakePresets.json is missing buildPresets #8

Open
mschofie opened this issue Nov 15, 2024 · 0 comments
Open

CMakePresets.json is missing buildPresets #8

mschofie opened this issue Nov 15, 2024 · 0 comments

Comments

@mschofie
Copy link
Member

Whilst the README.md does callout the build instructions as:

Build the project (it can be built by opening the folder in Visual Studio 2022).

The build is CMake-based, and has a CMakePresets.json, so I'd have thought that it would be buildable with CMake presets. But the CMakePresets.json file only contains 'configurePresets', which means I can configure the build though presets, but I can't build it. Adding 'buildPresets' would make the cmake build much easier. I manually added the following after the 'configurePresets' JSON:

    "buildPresets": [
        {
            "name": "x64-debug",
            "configurePreset": "x64-debug"
        },
        {
            "name": "x64-release",
            "configurePreset": "x64-release"
        }
    ]

And with that I can build with two commands:

cmake --preset x64-debug
cmake --build --preset x64-debug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant