[CMake] ExternalProject_Add and proxy

Cedric Doucet cedric.doucet at inria.fr
Wed Oct 21 08:58:50 EDT 2015


Hello, 

I try to download a library with ExternalProject_Add. 
The URL is correct and the CMake script works well, except when there is a proxy to define. 

The URL is : http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz 

After having set 

http_proxy=http://proxy.name.fr:1234 
https_proxy=https://proxy.name.fr:1234 

I can download the archive with: wget http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz 


But when I type 'make' to use the ExternalProject_Add command, I get (after some minutes): 
=========================================================================== 
[ 44%] Performing download step (download, verify and extract) for 'eigen' 
-- downloading... 
src='http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz' 
dst='/home/cdoucet/Documents/soutien/matherials/simol/build/third-party/eigen/download/3.2.4.tar.gz' 
timeout='none' 
CMake Error at stamp/download-eigen.cmake:19 (message): 
error: downloading 'http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz' 
failed 

status_code: 7 
status_string: "Couldn't connect to server" 
log: About to connect() to bitbucket.org port 80 (#0) 
Trying 131.103.20.167... Connection timed out 
Trying 131.103.20.168... Connection timed out 

couldn't connect to host 

Closing connection #0 

Couldn't connect to server 
=========================================================================== 

Do you know how to solve this problem? 

Thank you very much! 

Cédric Doucet 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20151021/a03eb732/attachment.html>


More information about the CMake mailing list