2012/9/27 David Cole <david.c...@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
--

Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to