mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 04:40:56 -06: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")
|