build: shorten instructions for cmake build (#4762)

Signed-off-by: Juan José Arboleda <soyjuanarbol@gmail.com>
This commit is contained in:
Juan José 2025-04-24 15:53:03 -05:00 committed by GitHub
parent e6c0007fae
commit eacd6e3c45
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -189,9 +189,7 @@ $ make install
To build with [CMake][]: To build with [CMake][]:
```bash ```bash
$ mkdir -p build $ cmake -B build -DBUILD_TESTING=ON # generate project with tests
$ (cd build && cmake .. -DBUILD_TESTING=ON) # generate project with tests
$ cmake --build build # add `-j <n>` with cmake >= 3.12 $ cmake --build build # add `-j <n>` with cmake >= 3.12
# Run tests: # Run tests: