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 /CMakeLists.txt | |
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 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) |