Skip to content

Commit

Permalink
Shallow clone of external dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ashao committed Jun 18, 2024
1 parent c4b52aa commit 7cf571f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ include(ExternalProject)
ExternalProject_Add(hiredis
GIT_REPOSITORY https://github.com/redis/hiredis.git
GIT_TAG v1.2.0
GIT_SHALLOW 1
CMAKE_ARGS
-DBUILD_SHARED_LIBS=OFF
-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
Expand All @@ -78,6 +79,7 @@ set_target_properties(libhiredis PROPERTIES
ExternalProject_Add(redis++
GIT_REPOSITORY https://github.com/sewenew/redis-plus-plus.git
GIT_TAG 1.3.10
GIT_SHALLOW 1
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/redis++
INSTALL_COMMAND make install PREFIX=${CMAKE_INSTALL_PREFIX}
CMAKE_ARGS -DREDIS_PLUS_PLUS_BUILD_TEST=OFF
Expand Down

0 comments on commit 7cf571f

Please sign in to comment.