mirror of
https://github.com/ninja-build/ninja.git
synced 2026-06-30 19:58:23 +00:00
use OFF for -DBUILD_TESTING instead
This commit is contained in:
@@ -49,17 +49,17 @@ version of the library.
|
||||
|
||||
### CMake
|
||||
|
||||
To build the ninja binary without building the unit tests, disable test building by setting `BUILD_TESTING` to `false`:
|
||||
To build the ninja binary without building the unit tests, disable test building by setting `BUILD_TESTING` to `OFF`:
|
||||
|
||||
```
|
||||
cmake -Bbuild-cmake -DBUILD_TESTING=false
|
||||
cmake -Bbuild-cmake -DBUILD_TESTING=OFF
|
||||
cmake --build build-cmake
|
||||
```
|
||||
|
||||
The `ninja` binary will now be inside the `build-cmake` directory (you can
|
||||
choose any other name you like).
|
||||
|
||||
To run the unit tests, omit the `-DBUILD_TESTING=false` option, and after building, run:
|
||||
To run the unit tests, omit the `-DBUILD_TESTING=OFF` option, and after building, run:
|
||||
|
||||
```
|
||||
./build-cmake/ninja_test
|
||||
|
||||
Reference in New Issue
Block a user