If you’re only changing /etc/wget
(Hopefully /etc/wgetrc
actually according to the docs I can see for wget) that will only effect the wget program. CMake’s ExternalProject_Add uses libcurl under the hood you you will need to set the proxy settings for curl not wget.
Curl uses the standard environment variables http_proxy
and https_proxy
: See here for how to set them.