From ba4f5a3414cc3750e060f978e53fd1c54d38036f Mon Sep 17 00:00:00 2001 From: Aaron Kimbre Date: Tue, 30 Apr 2024 19:41:25 -0500 Subject: [PATCH] chore: shallow checkout on fetcing git repos for reducint size on disk --- cmake/FindGoogleTest.cmake | 1 + cmake/FindJSON.cmake | 1 + 2 files changed, 2 insertions(+) diff --git a/cmake/FindGoogleTest.cmake b/cmake/FindGoogleTest.cmake index 69d16247a..35f3868bb 100644 --- a/cmake/FindGoogleTest.cmake +++ b/cmake/FindGoogleTest.cmake @@ -6,6 +6,7 @@ FetchContent_Declare( googletest GIT_REPOSITORY https://github.com/google/googletest.git GIT_TAG release-1.12.1 + GIT_SHALLOW 1 ) # For Windows: Prevent overriding the parent project's compiler/linker settings diff --git a/cmake/FindJSON.cmake b/cmake/FindJSON.cmake index 291ebcd35..8a3245759 100644 --- a/cmake/FindJSON.cmake +++ b/cmake/FindJSON.cmake @@ -6,6 +6,7 @@ FetchContent_Declare( json GIT_REPOSITORY https://github.com/nlohmann/json GIT_TAG v3.11.3 + GIT_SHALLOW 1 ) FetchContent_GetProperties(json)