diff options
author | Robert Adam <dev@robert-adam.de> | 2022-01-23 16:59:55 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-23 16:59:55 +0300 |
commit | 361e1b02f698f2d83b6efca17434a01ae519e2a5 (patch) | |
tree | 431b2d110abaff59416de7fe98b9b4062083e0e7 | |
parent | db3a280585ae0fb7798f18ba6487644e0b97802d (diff) | |
parent | 6a621f0a0ca9caafba449d3cd7c71eb0d6a306d4 (diff) |
Merge PR #5486: 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 67dfed9b0..2a02b200b 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 |