From 294fc9335e44960a3264998b708dc84388f2f6dc Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Fri, 8 Oct 2021 16:29:40 +0300 Subject: [PATCH] Set BUILD_TESTING to OFF by default --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a5bf281..838850f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,10 +31,10 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) list(APPEND CMAKE_MODULE_PATH ${boostorg_cmake_SOURCE_DIR}/include) - # Enable testing + # Testing (off by default) + option(BUILD_TESTING "Build the tests." OFF) include(CTest) - add_custom_target(check COMMAND ${CMAKE_CTEST_COMMAND} --output-on-failure -C $) if(BUILD_TESTING)