From 4abb787b96d98f0a10f1d343be0198f55bc7f16e Mon Sep 17 00:00:00 2001 From: Johannes Wilde Date: Sat, 24 Feb 2024 09:47:57 +0100 Subject: [PATCH] Use BUILD_TESTING as the default value for Beast_BUILD_TESTS. This is the variable most other boost libraries use for initial selection of whether to build their tests [or they default to OFF]. To me this makes usage as a third_party, where I don't necessarily want to run all tests with every build, more consistent. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 65f47c9d..3aec1923 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -87,7 +87,7 @@ project (Beast VERSION 353) set_property (GLOBAL PROPERTY USE_FOLDERS ON) option (Beast_BUILD_EXAMPLES "Build examples" ON) -option (Beast_BUILD_TESTS "Build tests" ON) +option (Beast_BUILD_TESTS "Build tests" ${BUILD_TESTING}) option (Beast_ENABLE_HANDLER_TRACKING "Define BOOST_ASIO_ENABLE_HANDLER_TRACKING when building libraries" OFF) option (Boost_USE_STATIC_LIBS "Use Static Boost libraries" ON)