summaryrefslogtreecommitdiffstats
path: root/Modules/ExternalProject.cmake
diff options
context:
space:
mode:
authorRuslan Baratov <ruslan_baratov@yahoo.com>2016-05-19 11:51:43 (GMT)
committerBrad King <brad.king@kitware.com>2016-05-19 15:15:59 (GMT)
commitebcc70271db52bd1ce8322485235152ac2c859aa (patch)
tree11afeff7ff85197bbd5eb2921326671bc804cf5e /Modules/ExternalProject.cmake
parent33218f6a9373583d56a6ce73752f2365ac3779f5 (diff)
downloadCMake-ebcc70271db52bd1ce8322485235152ac2c859aa.zip
CMake-ebcc70271db52bd1ce8322485235152ac2c859aa.tar.gz
CMake-ebcc70271db52bd1ce8322485235152ac2c859aa.tar.bz2
ExternalProject: Avoid repeating download verification
Verify step for downloaded files will be performed in separate script.
Diffstat (limited to 'Modules/ExternalProject.cmake')
-rw-r--r--Modules/ExternalProject.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 1755643..9752fc7 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -1928,6 +1928,7 @@ function(_ep_add_download_command name)
set(steps "download, verify and extract")
endif ()
set(comment "Performing download step (${steps}) for '${name}'")
+ file(WRITE "${stamp_dir}/verify-${name}.cmake" "") # already verified by 'download_script'
else()
set(file "${url}")
if (no_extract)
@@ -1936,8 +1937,8 @@ function(_ep_add_download_command name)
set(steps "verify and extract")
endif ()
set(comment "Performing download step (${steps}) for '${name}'")
+ _ep_write_verifyfile_script("${stamp_dir}/verify-${name}.cmake" "${file}" "${hash}")
endif()
- _ep_write_verifyfile_script("${stamp_dir}/verify-${name}.cmake" "${file}" "${hash}")
list(APPEND cmd ${CMAKE_COMMAND} -P ${stamp_dir}/verify-${name}.cmake
COMMAND)
if (NOT no_extract)