diff options
author | David Heidelberg <david.heidelberg@collabora.com> | 2024-03-31 22:49:26 +0200 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2024-04-12 12:05:54 +0000 |
commit | 67b89b3e3f5eae478145e5b062ab521334971442 (patch) | |
tree | 3c70a30a35f00a39b5531aa913e991b5f0fbfeec | |
parent | efd11185390e63b2aa043e548561a7eef83b4d69 (diff) |
README: recommend Ninja by default and switch to cmake --build
- Using make is slow. Use Ninja where possible.
- Use cmake --build, since depending on cmake settings it'll utilize
the right buildsystem.
Signed-off-by: David Heidelberg <david.heidelberg@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/898>
-rw-r--r-- | README.md | 16 |
1 files changed, 6 insertions, 10 deletions
@@ -61,15 +61,11 @@ For testing the python framework using `py.test unittests/framework` Now configure the build system: - $ cmake . + $ cmake . -G Ninja -This will start cmake's configuration tool, just follow the onscreen -instructions. The default settings should be fine, but I recommend you: - - Press 'c' once (this will also check for dependencies) and then - - Set `CMAKE_BUILD_TYPE` to `Debug` Now you can press 'c' again and then 'g' to generate the build system. Now build everything: - $ make + $ cmake --build . ### 2.1 Cross Compiling @@ -88,8 +84,8 @@ Install development packages. Configure and build. - $ cmake . - $ make + $ cmake . -G Ninja + $ cmake --build . ### 2.3 Mac OS X @@ -104,7 +100,7 @@ http://developer.apple.com/xcode Configure and build. $ cmake . - $ make + $ cmake --build . ### 2.4 Cygwin @@ -122,7 +118,7 @@ Install development packages. Configure and build. $ cmake . - $ make + $ cmake --build . ### 2.5 Windows |