[CMake] file( DOWNLOAD ) problem

Eric Noulard eric.noulard at gmail.com
Wed Sep 26 18:12:59 EDT 2012


2012/9/27 David Cole <david.cole at kitware.com>:
> With file(DOWNLOAD, you should always use the EXPECTED_MD5 argument (or
> EXPECTED_HASH with nightly CMake, or 2.8.10 or later) to verify success.

I bet this is not always possible.
Why would you **always** know some hash of the file you are downloading?

May be STATUS is usable in this case as well:

"If STATUS var is specified the status of the operation will be put in
var. The status is returned in a list of length 2. The first element
is the numeric return value for the operation, and the second element
is a string value for the error. A 0 numeric error means no error in
the operation"

-- 
Erk
Le gouvernement représentatif n'est pas la démocratie --
http://www.le-message.org


More information about the CMake mailing list