Description: Allow fully offline build
 This patch allows a full offline build. This failed previously as CMakelists.txt didn't check for the archive version of catch2.
Author: Matthias Geiger <matthias.geiger1024@tutanota.de>
Forwarded: not-needed
Last-Update: 2023-11-06 
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/

--- a/test/CMakeLists.txt
+++ b/test/CMakeLists.txt
@@ -12,41 +12,6 @@ set(CMAKE_CXX_EXTENSIONS OFF)
 if (${CMAKE_CXX_STANDARD} GREATER 11)
   find_package(Catch2 3 QUIET)
 endif()
-if (NOT Catch2_FOUND)
-  find_package(Catch2 2...<3 QUIET)
-  if (NOT Catch2_FOUND)
-    set(CATCH_DIR ${CMAKE_CURRENT_BINARY_DIR}/catch)
-    if (NOT EXISTS "${CATCH_DIR}/catch2/catch.hpp")
-      if (NOT EXISTS ${CATCH_DIR})
-        FILE(MAKE_DIRECTORY "${CATCH_DIR}/catch2")
-      endif()
-      file(
-              DOWNLOAD
-              https://github.com/catchorg/Catch2/releases/download/v2.13.7/catch.hpp  ${CATCH_DIR}/catch2/catch.hpp
-              STATUS
-              status
-              LOG
-              log
-      )
-      list(GET status 0 status_code)
-      list(GET status 1 status_string)
-
-      if(NOT status_code EQUAL 0)
-        message(FATAL_ERROR "error downloading catch: ${status_string}"
-                "${log}")
-      endif()
-    endif()
-    add_library(Catch2 INTERFACE)
-    add_library(Catch2::Catch2 ALIAS Catch2)
-    target_include_directories(Catch2 INTERFACE "${CATCH_DIR}")
-    set(Catch2_VERSION_MAJOR 2)
-  endif()
-endif()
-if (TARGET Catch2::Catch2WithMain)
-  set(CATCH2_MAIN Catch2::Catch2WithMain)
-  add_compile_definitions(CATCH2_MAIN)
-endif()
-add_compile_definitions(CATCH2_VERSION=${Catch2_VERSION_MAJOR})
 
 # Assumptions:
 # Clang and GNU compilers run on Linux or Linux-like platforms.
@@ -234,7 +199,6 @@ target_link_libraries(
         PUBLIC
         trompeloeil
         ${CATCH2_MAIN}
-        Catch2::Catch2
 )
