file(DOWNLOAD): CMake 3.25 broken with proxies
CMake 3.25 version uses a baked in curl 7.86. Curl 7.86 introduced a regression while parsing the no_proxy setting which was fixed later on in 7.87 (noproxy: fix tail-matching).
The issue causes curl to not detect correctly whether a destination host is on the internal network (matches the no_proxy
setting or on the public internet), i.e. internal hosts are connected via the proxy. The connection fails when the proxy for the public internet does not have access to the internal network. This setup is found often in corporate environments.
Unfortunately this leads to build breaks in projects where Fetch_Content is used extensively with internal and public resources.
As CMake 3.25 is the current stable version I would appreciate it if it could be fixed there by updating curl.