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)