Skip to content

Commit

Permalink
[cmake] git shallow content fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
FrancoisCarouge committed Oct 31, 2024
1 parent 2bfd29b commit c105635
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,15 @@ FetchContent_Declare(
google_test
GIT_REPOSITORY "https://github.com/google/googletest"
GIT_TAG "main"
GIT_SHALLOW TRUE
FIND_PACKAGE_ARGS NAMES GTest)
FetchContent_MakeAvailable(google_test)

FetchContent_Declare(
google_benchmark
GIT_REPOSITORY "https://github.com/google/benchmark"
GIT_TAG "main"
GIT_SHALLOW TRUE
FIND_PACKAGE_ARGS NAMES benchmark)
FetchContent_MakeAvailable(google_benchmark)

Expand Down
1 change: 1 addition & 0 deletions linalg/eigen/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ include(FetchContent)
FetchContent_Declare(
eigen
GIT_REPOSITORY "https://gitlab.com/libeigen/eigen"
GIT_SHALLOW TRUE
FIND_PACKAGE_ARGS NAMES Eigen3)
FetchContent_MakeAvailable(eigen)

Expand Down

0 comments on commit c105635

Please sign in to comment.