Use mkdir build && cd build && cmake -G Ninja .. && ninja to build for the first time, execute ninja -C build in the root dir of the project or ninja within build/ to rebuild the project.
Use -DCMAKE_C_COMPILER=xxx to set to your desired C compiler after -G Ninja.
Use
mkdir build && cd build && cmake -G Ninja .. && ninja
to build for the first time, executeninja -C build
in the root dir of the project orninja
within build/ to rebuild the project.Use
-DCMAKE_C_COMPILER=xxx
to set to your desired C compiler after-G Ninja
.