Skip to content

NMake assumed/forced on Windows even though we have Ninja #89

@ndabas

Description

@ndabas

A bug has been uncovered in #88: The generator assumes that nmake is available on Windows.

The pico-setup-windows installer bundles Ninja; additionally, we set the CMAKE_GENERATOR environment variable just to nudge CMake in the right direction when detecting which generator to use.

I'd recommend either not specifying a generator at all (so CMake can autodetect as needed) or check if Ninja is available in the PATH. Personally I'd go with not specifying a generator explicitly, that will either pick it up from CMAKE_GENERATOR or let users specify it that way. The build command can also be generalized to cmake --build <buildDir>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions