Use preset from CMakePresets.json
CMakePresets.json
cmake -S . --preset=default
And then build
cmake --build build/default