nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1From: =?utf-8?q?Timo_R=C3=B6hling?= <timo@gaussglocke.de>
2Date: Wed, 2 Dec 2020 15:59:22 +0100
3Subject: Use system doctest
4
5Forwarded: not-needed
6---
7 test/CMakeLists.txt | 6 +-----
8 1 file changed, 1 insertion(+), 5 deletions(-)
9
10diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
11index 37359ea..f269cfb 100644
12--- a/test/CMakeLists.txt
13+++ b/test/CMakeLists.txt
14@@ -8,11 +8,7 @@ target_link_libraries(foonathan_memory_profiling foonathan_memory)
15 target_include_directories(foonathan_memory_profiling PRIVATE
16 ${FOONATHAN_MEMORY_SOURCE_DIR}/include/foonathan/memory)
17
18-# Fetch doctest.
19-message(STATUS "Fetching doctest")
20-include(FetchContent)
21-FetchContent_Declare(doctest URL https://github.com/doctest/doctest/archive/refs/tags/v2.4.12.zip)
22-FetchContent_MakeAvailable(doctest)
23+find_package(doctest REQUIRED)
24
25 set(tests
26 test_allocator.hpp