blob: 16c9dabd33d7e4579ac5e3b1f5b50c52a4f3d974 [file]
include(ExternalProject)
set(CMAKE_EP_GIT_CLONE_RETRY_COUNT 3)
set(CMAKE_EP_GIT_CLONE_RETRY_DELAY 1)
# The GIT_REPOSITORY path does not exist, so git clone will always fail,
# which is what triggers the retries.
ExternalProject_Add(TestGitRetry
GIT_REPOSITORY "${CMAKE_CURRENT_BINARY_DIR}/TestGitRetry.git"
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
)