Skip to content

Commit

Permalink
fix: "error: could not find git for clone of api-common-protos-populate"
Browse files Browse the repository at this point in the history
  • Loading branch information
nikkov authored Nov 11, 2024
1 parent 09bc1ec commit 1d7523c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/DownloadUsingCPM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ if(CMAKE_VERSION VERSION_LESS "3.25.0")
message(WARNING "Please update to cmake 3.25+ to remove warnings from third-party libs")
endif()

find_program(GIT_EXECUTABLE
NAMES ${git_names}
PATHS ${github_path} ${_git_sourcetree_path}
DOC "Git command line client"
)

# If A uses find_package(B), and we install A and B using CPM, then:
# 1. make sure to call write_package_stub in SetupB
# 2. make sure to call SetupB at the beginning of SetupA
Expand Down

0 comments on commit 1d7523c

Please sign in to comment.