[CMake] How URL_MD5 is computed in ExternalProject_Add?

CHEVRIER, Marc marc.chevrier at sap.com
Tue May 19 07:29:07 EDT 2015


You can use FILE (MD5 <file> <variable>) command to compute MD5 value.

From: CMake on behalf of Cedric Doucet
Date: Tuesday 19 May 2015 13:14
To: "cmake at cmake.org<mailto:cmake at cmake.org>"
Subject: Re: [CMake] How URL_MD5 is computed in ExternalProject_Add?


I managed to obtain the same MD5 code by running the md5sum command on the downloaded file.
However, I would like to write an automatic way of downloading third-party libraries.
Is it possible to let CMake compute the MD5 of the downloaded file?

Cédric



________________________________
De: "Cedric Doucet" <cedric.doucet at inria.fr<mailto:cedric.doucet at inria.fr>>
À: cmake at cmake.org<mailto:cmake at cmake.org>
Envoyé: Mardi 19 Mai 2015 12:37:03
Objet: [CMake] How URL_MD5 is computed in ExternalProject_Add?

Hello,

I use the URL_MD5 variable to avoid downloading more than once a library with the ExternalProject_Add command.
However, I don't manage to get the same MD5 code as CMake when I try to get one with generators available on the internet.

How could I get the same one for an URL written in the form http://www.mywebsite.myext/mypath/myfile?
I have already tried the MD5 of the URL and of myfile but I don't get the same MD5 as CMake.

Thanks!

Cédric

--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150519/f2b5436a/attachment-0001.html>


More information about the CMake mailing list