Recommend the use of Ninja when using CMake

This commit is contained in:
Simon Hausmann 2020-12-15 18:28:04 +01:00
parent 5a7fa5bf11
commit 1a3396da3b
2 changed files with 4 additions and 1 deletions

View file

@ -15,6 +15,9 @@ SixtyFPS is still in the early stages of development: APIs will change and impor
SixtyFPS comes with a CMake integration that automates the compilation step of the `.60` markup language files and SixtyFPS comes with a CMake integration that automates the compilation step of the `.60` markup language files and
offers a CMake target for convenient linkage. offers a CMake target for convenient linkage.
*Note*: We recommend using the Ninja generator of CMake for the most efficient build and `.60` dependency tracking.
You can select the CMake Ninja backend by passing `-GNinja` or settig the `CMAKE_GENERATOR` environment variable to `Ninja`.
### Building from Sources ### Building from Sources
The recommended and most flexible way to use the C++ API is to build SixtyFPS from sources. The recommended and most flexible way to use the C++ API is to build SixtyFPS from sources.

View file

@ -44,7 +44,7 @@ This is just a normal cmake build.
```sh ```sh
mkdir cppbuild && cd cppbuild mkdir cppbuild && cd cppbuild
cmake .. cmake -GNinja ..
cmake --build . cmake --build .
``` ```