Skip to content

Commit dbf8d3e

Browse files
Update README.md
Co-authored-by: davidlion <[email protected]>
1 parent dabf541 commit dbf8d3e

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,9 @@ To build and run unit tests for a specific library:
6363
task test-<lib_name>
6464
```
6565

66-
The default behaviors for ystdlib-cpp unit test building are:
67-
* As a top-level project, unit tests are built.
68-
* When included as a subproject, the parent-scope `BUILD_TESTING` flag (true /false/undefined) is
69-
strictly respected.
70-
If you do not wish to build unit tests under any circumstances, you can override the default
71-
behaviors by setting CMake option `YSTDLIB_CPP_BUILD_TESTING` to `OFF`.
72-
73-
As a top-level CMake project, `ystdlib-cpp` always builds unit tests. When included as a subproject,
74-
it respects the parent-scope `BUILD_TESTING` flag. In either case, you can turn off unit test
75-
building by setting option `YSTDLIB_CPP_BUILD_TESTING` to off.
66+
When generating testing target the CMake variable `BUILD_TESTING` is followed, unless overruled by
67+
setting `YSTDLIB_CPP_BUILD_TESTING` to false. By default, if built as a top-level project
68+
`BUILD_TESTING` will be set to true and unit tests will be built.
7669

7770
## Linting
7871
Before submitting a pull request, ensure you’ve run the linting commands below and have fixed all

0 commit comments

Comments
 (0)