I think the issue is that you did not specify the generator in your command line.
Could you try:
cmake -B build -G Ninja
cmake --build build
I think the issue is that you did not specify the generator in your command line.
Could you try:
cmake -B build -G Ninja
cmake --build build