mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
In order to shorten the download failure of ExternalProject download steps, a download retry is only done when a recoverable network error is encountered.
6 lines
232 B
CMake
6 lines
232 B
CMake
include(ExternalProject)
|
|
set(source_dir "${CMAKE_CURRENT_BINARY_DIR}/DownloadTimeout")
|
|
file(REMOVE_RECURSE "${source_dir}")
|
|
file(MAKE_DIRECTORY "${source_dir}")
|
|
ExternalProject_Add(MyProj URL "http://cmake.org/invalid_file.tar.gz")
|