[CMake] ExternalProject_Add and proxy

Cedric Doucet cedric.doucet at inria.fr
Wed Oct 21 12:07:41 EDT 2015




Hello Denis!

Thank you for your answer.
Actually, there is no login and no password.
It's an academic proxy.
So the initial syntax of http_proxy should to be correct.

Cédric

----- Mail original -----
> De: "D. Barbier" <bouzim at gmail.com>
> À: "Cedric Doucet" <cedric.doucet at inria.fr>
> Cc: cmake at cmake.org
> Envoyé: Mercredi 21 Octobre 2015 17:35:47
> Objet: Re: [CMake] ExternalProject_Add and proxy
> 
> On 2015-10-21 14:58 GMT+02:00 Cedric Doucet wrote:
> >
> > 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
> 
> Hello,
> 
> Since you do not provide login/password to your proxy, it is stored
> elsewhere, either in ~/.netrc or ~/.wgetrc.
> Delete these files and you will encounter the same problem.
> 
> > 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
> [...]
> 
> Try with
>   http_proxy=http://your_login:your_password@proxy.name.fr:1234
> 
> Denis
> 


More information about the CMake mailing list