Skip to content

Commit 1c54430

Browse files
authored
use OFF for -DBUILD_TESTING instead
1 parent ff834e4 commit 1c54430

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,17 +49,17 @@ version of the library.
4949

5050
### CMake
5151

52-
To build the ninja binary without building the unit tests, disable test building by setting `BUILD_TESTING` to `false`:
52+
To build the ninja binary without building the unit tests, disable test building by setting `BUILD_TESTING` to `OFF`:
5353

5454
```
55-
cmake -Bbuild-cmake -DBUILD_TESTING=false
55+
cmake -Bbuild-cmake -DBUILD_TESTING=OFF
5656
cmake --build build-cmake
5757
```
5858

5959
The `ninja` binary will now be inside the `build-cmake` directory (you can
6060
choose any other name you like).
6161

62-
To run the unit tests, omit the `-DBUILD_TESTING=false` option, and after building, run:
62+
To run the unit tests, omit the `-DBUILD_TESTING=OFF` option, and after building, run:
6363

6464
```
6565
./build-cmake/ninja_test

0 commit comments

Comments
 (0)