diff Resources/CMake/LibCurlConfiguration.cmake @ 1537:fbf763bb1fa3

error detection in patches
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 13 Aug 2015 15:25:38 +0200
parents 1b03676d68c2
children 4d0e2c38d15b
line wrap: on
line diff
--- a/Resources/CMake/LibCurlConfiguration.cmake	Thu Aug 13 14:16:11 2015 +0200
+++ b/Resources/CMake/LibCurlConfiguration.cmake	Thu Aug 13 15:25:38 2015 +0200
@@ -1,9 +1,9 @@
 if (STATIC_BUILD OR NOT USE_SYSTEM_CURL)
   SET(CURL_SOURCES_DIR ${CMAKE_BINARY_DIR}/curl-7.44.0)
-  DownloadPackage(
-    "cf46112b5151e2f1a3fd38439bdade23"
-    "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/curl-7.44.0.tar.gz"
-    "${CURL_SOURCES_DIR}")
+  SET(CURL_URL "http://www.montefiore.ulg.ac.be/~jodogne/Orthanc/ThirdPartyDownloads/curl-7.44.0.tar.gz")
+  SET(CURL_MD5 "cf46112b5151e2f1a3fd38439bdade23")
+
+  DownloadPackage(${CURL_MD5} ${CURL_URL} "${CURL_SOURCES_DIR}")
 
   include_directories(
     ${CURL_SOURCES_DIR}/include