From 1c5443084c5539b4cf7e487e59e326b831f5441b Mon Sep 17 00:00:00 2001 From: Cheng-Yeh Chung Date: Wed, 9 Apr 2025 17:21:13 +0800 Subject: [PATCH] use OFF for -DBUILD_TESTING instead --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 2d546ea2..65929fa9 100644 --- a/README.md +++ b/README.md @@ -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