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-02-05 
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3c94e78..24d7790 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,27 +47,6 @@ if (MASTER_PROJECT AND CMAKE_BUILD_TYPE MATCHES Debug)
   set(CMAKE_CXX_STANDARD_REQUIRED YES)
   set(CMAKE_CXX_EXTENSIONS OFF)
 
-  set(CATCH_DIR ${CMAKE_CURRENT_BINARY_DIR}/catch)
-  if(NOT EXISTS ${CATCH_DIR}/catch.hpp)
-    if (NOT EXISTS ${CATCH_DIR})
-      make_directory(${CATCH_DIR})
-    endif()
-    file(
-      DOWNLOAD
-        https://github.com/catchorg/Catch2/releases/download/v2.13.7/catch.hpp  ${CATCH_DIR}/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()
 
   # Assumptions:
   # Clang and GNU compilers run on Linux or Linux-like platforms.
