The source project of this merge request has been removed.
Add support for .netrc credential storage to file() and ExternalProject
While the USERPWD/HTTP_PASSWORD option allows specification of credentials for secured downloads, it results in the credentials permeating into the generated build system. The default behavior of libcurl is to ignore any .netrc file in the user's home directory unless CURL_NETRC_(REQUIRED|OPTIONAL) are set in CURLOPT_NETRC. This adds support to the file command and the ExternalProject module to allow supplying parameters to pass along to CURLOPT_NETRC and CURLOPT_NETRC_FILE.