summaryrefslogtreecommitdiffstats
path: root/pkgs/by-name/pr/prevail/remove-fetchcontent-usage.patch
blob: 6658e260df63018343be8ceb58d693cc822b761f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff --git a/CMakeLists.txt b/CMakeLists.txt
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -75,9 +75,7 @@
 endif ()
 
 FetchContent_Declare(GSL
-  GIT_REPOSITORY "https://github.com/microsoft/GSL"
-  GIT_TAG "v4.2.2"
-  GIT_SHALLOW ON
+  SOURCE_DIR "@gslSrc@"
 )
 set(GSL_INSTALL ON CACHE BOOL "Force GSL install to vendor it with prevail" FORCE)
 set(GSL_TEST OFF CACHE BOOL "Skip GSL tests when building as a dependency" FORCE)
@@ -196,9 +194,7 @@
 # Tests
 if (prevail_ENABLE_TESTS)
   FetchContent_Declare(Catch2
-    GIT_REPOSITORY "https://github.com/catchorg/Catch2.git"
-    GIT_TAG "v3.15.3"
-    GIT_SHALLOW ON
+    SOURCE_DIR "@catch2Src@"
   )
   FetchContent_MakeAvailable(Catch2)