summarylogtreecommitdiffstats
path: root/010-brunsli-use-local-sources-for-dependencies.patch
blob: 344815a43052588f6ad17a909ae1ddb4009fa87a (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
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -30,8 +30,8 @@ include(FetchContent)
 # Add GTest
 FetchContent_Declare(
   GTest
-  GIT_REPOSITORY https://github.com/google/googletest
-  GIT_TAG e2239ee6043f73722e7aa812a459f54a28552929 # v1.11.0
+  SOURCE_DIR "${CMAKE_SOURCE_DIR}/../googletest"
+  EXCLUDE_FROM_ALL
 )
 # For Windows: Prevent overriding the parent project's compiler/linker settings
 set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
@@ -41,8 +41,8 @@ FetchContent_MakeAvailable(GTest)
 # Add Brotli
 FetchContent_Declare(
   Brotli
-  GIT_REPOSITORY https://github.com/google/brotli
-  GIT_TAG e61745a6b7add50d380cfd7d3883dd6c62fc2c71 # v1.0.9
+  SOURCE_DIR "${CMAKE_SOURCE_DIR}/../brotli"
+  EXCLUDE_FROM_ALL
 )
 set(BROTLI_DISABLE_TESTS ON CACHE INTERNAL "")
 set(BROTLI_BUILD_TOOLS OFF CACHE INTERNAL "")