Skip to content

Commit e6c8c3b

Browse files
committed
Updated ExternalProject with GIT_SHALLOW
For the prepare_catch file, the external projects now have GIT_SHALLOW enabled, so that the repository only pulls the repository with a `--depth 1` value, limiting what is pulled in to the minimum required.
1 parent c404d9c commit e6c8c3b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

prepare_catch.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ function(prepare_catch)
6363
git_catch
6464
PREFIX ${CMAKE_BINARY_DIR}/catch2
6565
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
66+
GIT_SHALLOW 1
6667
TIMEOUT 10
6768
UPDATE_COMMAND ${GIT_EXECUTABLE} pull
6869
CONFIGURE_COMMAND ""
@@ -76,6 +77,7 @@ function(prepare_catch)
7677
PREFIX ${CMAKE_BINARY_DIR}/catch1
7778
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
7879
GIT_TAG Catch1.x
80+
GIT_SHALLOW 1
7981
TIMEOUT 10
8082
UPDATE_COMMAND ${GIT_EXECUTABLE} pull
8183
CONFIGURE_COMMAND ""

0 commit comments

Comments
 (0)