diff options
author | Klemens Nanni <klemens@posteo.de> | 2022-01-21 02:49:07 +0300 |
---|---|---|
committer | Klemens Nanni <klemens@posteo.de> | 2022-01-21 23:39:00 +0300 |
commit | 6a621f0a0ca9caafba449d3cd7c71eb0d6a306d4 (patch) | |
tree | 9e325a081c4699f1682655f589c75dcbd3080954 | |
parent | a517b06fb5a693e4cb3bc7704b657793ee638430 (diff) |
BUILD: Build tests in package builds by default
Encourage OS package maintainers to run tests by `packaging=ON` implying
`tests=ON`.
Keep `online-tests=OFF` by default since it is common practise for
packages to be built in unprivileged environments, e.g. without network.
-rw-r--r-- | CMakeLists.txt | 2 | ||||
-rw-r--r-- | docs/dev/build-instructions/cmake_options.md | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 560e2b31b..cdfa3327f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,6 @@ include(CheckIPOSupported) check_ipo_supported(RESULT LTO_DEFAULT) -option(tests "Build tests" OFF) option(optimize "Build a heavily optimized version, specific to the machine it's being compiled on." OFF) option(static "Build static binaries." OFF) @@ -63,6 +62,7 @@ option(warnings-as-errors "All warnings are treated as errors." ON) option(overlay "Build overlay." ON) option(packaging "Build package." OFF) +option(tests "Build tests." ${packaging}) option(plugins "Build plugins." ON) option(debug-dependency-search "Prints extended information during the search for the needed dependencies" OFF) diff --git a/docs/dev/build-instructions/cmake_options.md b/docs/dev/build-instructions/cmake_options.md index 18c05202d..cf545527c 100644 --- a/docs/dev/build-instructions/cmake_options.md +++ b/docs/dev/build-instructions/cmake_options.md @@ -231,8 +231,8 @@ Build binaries in a way that allows easier debugging. ### tests -Build tests -(Default: OFF) +Build tests. +(Default: ${packaging}) ### tracy |