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
@@ -71,7 +71,7 @@
 # seqan3::test::performance specifies required flags, includes and libraries
 # needed for performance test cases in 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
@@ -50,30 +50,7 @@
 macro (seqan3_require_benchmark)
     enable_testing ()
 
-    set (gbenchmark_git_tag "v1.5.0")
-
-    if (NOT CMAKE_VERSION VERSION_LESS 3.14)
-        # NOTE: setting the standard prevents an ICE involving passing -fconcepts through CMAKE_CXX_FLAGS
-        set (CMAKE_CXX_STANDARD 17)
-        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)
-        FetchContent_MakeAvailable(gbenchmark_fetch_content)
-
-        # NOTE: google benchmark's CMakeLists.txt already defines Shlwapi
-        add_library (gbenchmark ALIAS benchmark_main)
-        unset (CMAKE_CXX_STANDARD)
-    else ()
-        message (STATUS "Use google benchmark as external project:")
-
-        seqan3_require_benchmark_old ("${gtest_git_tag}")
-    endif ()
+    find_package(benchmark REQUIRED)
 
     add_custom_target (gbenchmark_build DEPENDS gbenchmark)
 endmacro ()
