From 01ff55f375b3d9e96b178d3a963d9e3d5ac5134b Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Tue, 7 Jan 2020 21:29:11 +0100 Subject: Add support for GTest 1.9, do not fail silently if its missing Require passing -DWITH_TESTS=OFF to CMakeList to disable unit tests, rather than ignoring them if GTest cannot be found; which just happened on CI... --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 27222f648..ab08b8f4e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,6 +11,7 @@ include_directories(${PROJECT_BINARY_DIR}/include) enable_testing() option(WITH_DOC "Build documentation." ON) +option(WITH_TESTS "Build tests" ON) option(USE_NLS "Localisation support." ON) set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMake") -- cgit v1.2.3-18-g5258