Author: Michael R. Crusoe <crusoe@debian.org>
Description: Use the Debian package of libbenchmark
Forwarded: not-needed
--- seqan3.orig/test/seqan3-test.cmake
+++ seqan3/test/seqan3-test.cmake
@@ -79,7 +79,7 @@
 # needed for performance test cases in seqan3/test/performance
 if (NOT TARGET seqan3::test::performance)
     add_library (seqan3_test_performance INTERFACE)
-    target_link_libraries (seqan3_test_performance INTERFACE "seqan3::test" "gbenchmark")
+    target_link_libraries (seqan3_test_performance INTERFACE "seqan3::test" "benchmark")
 
     if (SEQAN3_BENCHMARK_ALIGN_LOOPS)
         target_compile_options (seqan3_test_performance INTERFACE "-falign-loops=32")
--- seqan3.orig/test/cmake/seqan3_require_benchmark.cmake
+++ seqan3/test/cmake/seqan3_require_benchmark.cmake
@@ -63,27 +63,6 @@
 macro (seqan3_require_benchmark)
     enable_testing ()
 
-    set (gbenchmark_git_tag "v1.6.1")
-
-    if (NOT CMAKE_VERSION VERSION_LESS 3.14)
-        message (STATUS "Fetch Google Benchmark:")
-
-        include (FetchContent)
-        FetchContent_Declare (
-            gbenchmark_fetch_content
-            GIT_REPOSITORY "https://github.com/google/benchmark.git"
-            GIT_TAG "${gbenchmark_git_tag}")
-        option (BENCHMARK_ENABLE_TESTING "" OFF)
-        option (BENCHMARK_ENABLE_WERROR "" OFF) # Does not apply to Debug builds.
-        FetchContent_MakeAvailable (gbenchmark_fetch_content)
-
-        # NOTE: google benchmark's CMakeLists.txt already defines Shlwapi
-        add_library (gbenchmark ALIAS benchmark_main)
-    else ()
-        message (STATUS "Use Google Benchmark as external project:")
-
-        seqan3_require_benchmark_old ("${gbenchmark_git_tag}")
-    endif ()
-
+    find_package(benchmark REQUIRED)
     add_custom_target (gbenchmark_build DEPENDS gbenchmark)
 endmacro ()
