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>.
A bug has been uncovered in #88: The generator assumes that
nmakeis available on Windows.The pico-setup-windows installer bundles Ninja; additionally, we set the
CMAKE_GENERATORenvironment 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_GENERATORor let users specify it that way. The build command can also be generalized tocmake --build <buildDir>.