Skip to content

Commit

Permalink
Make ExternalProject_Add pass "--depth 1" to "git clone"
Browse files Browse the repository at this point in the history
.. to reduce cloning time

Signed-off-by: Sebastian Pipping <sebastian@pipping.org>
  • Loading branch information
hartwork authored and vitalybuka committed Feb 8, 2025
1 parent 75f1720 commit cd2eb8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/external/protobuf.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ ExternalProject_Add(${PROTOBUF_TARGET}
PREFIX ${PROTOBUF_TARGET}
GIT_REPOSITORY https://github.com/google/protobuf.git
GIT_TAG v29.3
GIT_SHALLOW ON
UPDATE_COMMAND ""
CONFIGURE_COMMAND ${CMAKE_COMMAND} ${PROTOBUF_INSTALL_DIR}/src/${PROTOBUF_TARGET}
-G${CMAKE_GENERATOR}
Expand Down

0 comments on commit cd2eb8e

Please sign in to comment.