summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Heidelberg <david.heidelberg@collabora.com>2024-03-31 22:49:26 +0200
committerMarge Bot <emma+marge@anholt.net>2024-04-12 12:05:54 +0000
commit67b89b3e3f5eae478145e5b062ab521334971442 (patch)
tree3c70a30a35f00a39b5531aa913e991b5f0fbfeec
parentefd11185390e63b2aa043e548561a7eef83b4d69 (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.md16
1 files changed, 6 insertions, 10 deletions
diff --git a/README.md b/README.md
index b25ec54de..092b6b11d 100644
--- a/README.md
+++ b/README.md
@@ -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