What version of CMake are you using? All the modern pre-built CMake installations should support https without extra effort on your part. Are you using a pre-built version from somewhere or are you building CMake yourself?<div><br><br>On Saturday, April 18, 2015, Cedric Doucet <<a href="mailto:cedric.doucet@inria.fr">cedric.doucet@inria.fr</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Ok it seems the answer to my problem is here:<br>
<a href="http://www.cmake.org/pipermail/cmake/2010-December/041295.html" target="_blank">http://www.cmake.org/pipermail/cmake/2010-December/041295.html</a><br>
I will try it.<br>
<br>
----- Mail original -----<br>
> De: "Cedric Doucet" <<a href="javascript:;" onclick="_e(event, 'cvml', 'cedric.doucet@inria.fr')">cedric.doucet@inria.fr</a>><br>
> À: <a href="javascript:;" onclick="_e(event, 'cvml', 'cmake@cmake.org')">cmake@cmake.org</a><br>
> Envoyé: Samedi 18 Avril 2015 13:38:31<br>
> Objet: Re: [CMake] Don't download external projects again after calling "make clean"<br>
><br>
><br>
> I have just tried to install curl to get https support.<br>
> To do that, I have followed the steps below:<br>
><br>
> 1. Installation of openssl:<br>
>   1.a. ./config --prefix=/my/openssl/path<br>
>   1.b. make<br>
>   1.c. make test<br>
>   1.d. make install<br>
> 2. Installation of curl<br>
>   2.a. ./configure --prefix=/my/curl/path --with-ssl=/my/openssl/path/lib<br>
>   2.b. make<br>
>   2.c. make install<br>
><br>
> I have also prepend PATH with /my/curl/path/bin.<br>
> However, the error remains.<br>
> It seems that my version of curl (7.41.0) is not taken into acount because I<br>
> have still this line in the error message:<br>
> User-Agent: curl/7.38.0<br>
> I tried to remove all previous of curl and libcurl but it does not change<br>
> anything.<br>
><br>
> Could you help me?<br>
><br>
> Cédric<br>
><br>
><br>
> ----- Mail original -----<br>
> > De: "Cedric Doucet" <<a href="javascript:;" onclick="_e(event, 'cvml', 'cedric.doucet@inria.fr')">cedric.doucet@inria.fr</a>><br>
> > À: "David Cole" <<a href="javascript:;" onclick="_e(event, 'cvml', 'DLRdave@aol.com')">DLRdave@aol.com</a>><br>
> > Cc: <a href="javascript:;" onclick="_e(event, 'cvml', 'cmake@cmake.org')">cmake@cmake.org</a><br>
> > Envoyé: Samedi 18 Avril 2015 13:00:28<br>
> > Objet: Re: [CMake] Don't download external projects again after calling<br>
> > "make clean"<br>
> ><br>
> ><br>
> > Hello David,<br>
> ><br>
> > thank you very much.<br>
> > Unfortunately, I get the following error message if I remove my download<br>
> > command:<br>
> ><br>
> > -- downloading...<br>
> >      src='<a href="http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz" target="_blank">http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz</a>'<br>
> >      dst='/home/cdoucet/Downloads/eigen/download/3.2.4.tar.gz'<br>
> >      timeout='none'<br>
> > -- [download 100% complete]<br>
> > CMake Error at src/eigen-stamp/download-eigen.cmake:27 (message):<br>
> >   error: downloading '<a href="http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz" target="_blank">http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz</a>'<br>
> >   failed<br>
> ><br>
> >     status_code: 1<br>
> >     status_string: "Unsupported protocol"<br>
> >     log: Hostname was NOT found in DNS cache<br>
> >     Trying 131.103.20.167...<br>
> ><br>
> >   Connected to <a href="http://bitbucket.org" target="_blank">bitbucket.org</a> (131.103.20.167) port 80 (#0)<br>
> ><br>
> >   GET /eigen/eigen/get/3.2.4.tar.gz HTTP/1.1<br>
> ><br>
> >   User-Agent: curl/7.38.0<br>
> ><br>
> >   Host: <a href="http://bitbucket.org" target="_blank">bitbucket.org</a><br>
> ><br>
> >   Accept: */*<br>
> ><br>
> ><br>
> ><br>
> >   HTTP/1.1 301 Moved Permanently<br>
> ><br>
> >   Server nginx/1.6.2 is not blacklisted<br>
> ><br>
> >   Server: nginx/1.6.2<br>
> ><br>
> >   Date: Sat, 18 Apr 2015 10:55:20 GMT<br>
> ><br>
> >   Content-Type: text/html<br>
> ><br>
> >   Content-Length: 184<br>
> ><br>
> >   Location: <a href="https://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz" target="_blank">https://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz</a><br>
> ><br>
> ><br>
> ><br>
> >   Ignoring the response-body<br>
> ><br>
> >   <html><br>
> ><br>
> >   <head><title>301 Moved Permanently</title></head><br>
> ><br>
> >   <body bgcolor="white"><br>
> ><br>
> >   <center><h1>301 Moved Permanently</h1></center><br>
> ><br>
> >   <hr><center>nginx/1.6.2</center><br>
> ><br>
> >   </body><br>
> ><br>
> >   </html><br>
> ><br>
> >   Connection #0 to host <a href="http://bitbucket.org" target="_blank">bitbucket.org</a> left intact<br>
> ><br>
> >   Issue another request to this URL:<br>
> >   '<a href="https://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz" target="_blank">https://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz</a>'<br>
> ><br>
> >   Protocol "https" not supported or disabled in libcurl<br>
> ><br>
> >   Closing connection -1<br>
> ><br>
> ><br>
> ><br>
> ><br>
> > ----- Mail original -----<br>
> > > De: "David Cole" <<a href="javascript:;" onclick="_e(event, 'cvml', 'DLRdave@aol.com')">DLRdave@aol.com</a>><br>
> > > À: "Cedric Doucet" <<a href="javascript:;" onclick="_e(event, 'cvml', 'cedric.doucet@inria.fr')">cedric.doucet@inria.fr</a>><br>
> > > Cc: <a href="javascript:;" onclick="_e(event, 'cvml', 'cmake@cmake.org')">cmake@cmake.org</a><br>
> > > Envoyé: Vendredi 17 Avril 2015 13:21:08<br>
> > > Objet: Re: [CMake] Don't download external projects again after calling<br>
> > > "make clean"<br>
> > ><br>
> > > Eliminate your DOWNLOAD_COMMAND. CMake knows how to do it with just<br>
> > > the URL_MD5, DOWNLOAD_DIR and SOURCE_DIR information....<br>
> > ><br>
> > > HTH,<br>
> > > David<br>
> > ><br>
> > ><br>
> > > On Fri, Apr 17, 2015 at 1:32 AM, Cedric Doucet <<a href="javascript:;" onclick="_e(event, 'cvml', 'cedric.doucet@inria.fr')">cedric.doucet@inria.fr</a>><br>
> > > wrote:<br>
> > > ><br>
> > > > Hello David,<br>
> > > ><br>
> > > > thank you very much for your help.<br>
> > > ><br>
> > > > Unfortunately I may do something wrong because it does not work.<br>
> > > > After cleaning, the library is downloaded again.<br>
> > > ><br>
> > > > I guess my mistake comes from the fact I do not understand the role of<br>
> > > > URL_MD5.<br>
> > > > Below is a simple example where downloading and installing is very<br>
> > > > fast.<br>
> > > > You just have to replace the value of EXTERNAL_DIR by the path to your<br>
> > > > own<br>
> > > > "Downloads" repository.<br>
> > > > I tried to put URL in my DOWNLOAD_COMMAND but the call "wget <URL>"<br>
> > > > does<br>
> > > > not seem to be understood by the wget command.<br>
> > > ><br>
> > > > Thanks again!<br>
> > > ><br>
> > > > Cédric<br>
> > > ><br>
> > > > --------------------------------------------------------------------------<br>
> > > > cmake_minimum_required (VERSION 2.6)<br>
> > > ><br>
> > > > project (example CXX)<br>
> > > ><br>
> > > > set(CMAKE_VERBOSE_MAKEFILE ON)<br>
> > > ><br>
> > > > include(ProcessorCount)<br>
> > > > ProcessorCount(N)<br>
> > > > if(NOT N EQUAL 0)<br>
> > > >   set(CMAKE_BUILD_FLAGS -j${N})<br>
> > > > endif()<br>
> > > ><br>
> > > > include(ExternalProject)<br>
> > > > set(EXTERNAL_DIR /home/cdoucet/Downloads)<br>
> > > > ExternalProject_Add(eigen<br>
> > > >                     PREFIX ${EXTERNAL_DIR}/eigen<br>
> > > >                     DOWNLOAD_DIR ${EXTERNAL_DIR}/eigen/download<br>
> > > >                     SOURCE_DIR ${EXTERNAL_DIR}/eigen/src<br>
> > > >                     BINARY_DIR ${EXTERNAL_DIR}/eigen/build<br>
> > > >                     INSTALL_DIR ${EXTERNAL_DIR}/eigen/install<br>
> > > >                     URL<br>
> > > >                     <a href="http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz" target="_blank">http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz</a><br>
> > > >                     URL_MD5 ccb18a771f678b38a3d33c321a8e7daf<br>
> > > >                     DOWNLOAD_COMMAND wget<br>
> > > >                     <a href="http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz" target="_blank">http://bitbucket.org/eigen/eigen/get/3.2.4.tar.gz</a><br>
> > > >                     &&<br>
> > > >                     tar xvzf 3.2.4.tar.gz -C <SOURCE_DIR><br>
> > > >                     --strip-components=1<br>
> > > >                     CONFIGURE_COMMAND cd <BINARY_DIR> && cmake -D<br>
> > > >                     CMAKE_INSTALL_PREFIX=$<INSTALL_DIR> <SOURCE_DIR><br>
> > > >                    )<br>
> > > > ------------------------------------------------------------------------------<br>
> > > ><br>
> > > ><br>
> > > ><br>
> > > > ----- Mail original -----<br>
> > > >> De: "David Cole" <<a href="javascript:;" onclick="_e(event, 'cvml', 'DLRdave@aol.com')">DLRdave@aol.com</a>><br>
> > > >> À: "Cedric Doucet" <<a href="javascript:;" onclick="_e(event, 'cvml', 'cedric.doucet@inria.fr')">cedric.doucet@inria.fr</a>><br>
> > > >> Cc: <a href="javascript:;" onclick="_e(event, 'cvml', 'cmake@cmake.org')">cmake@cmake.org</a><br>
> > > >> Envoyé: Lundi 13 Avril 2015 12:40:34<br>
> > > >> Objet: Re: [CMake] Don't download external projects again after<br>
> > > >> calling<br>
> > > >> "make clean"<br>
> > > >><br>
> > > >> Use the URL_MD5 and DOWNLOAD_DIR arguments to ExternalProject_Add to<br>
> > > >> put the downloaded files into a location outside the build tree<br>
> > > >> (perhaps ~/Downloads on Mac/Linux or $ENV{USERPROFILE}/Downloads on<br>
> > > >> Windows).<br>
> > > >><br>
> > > >> With DOWNLOAD_DIR outside the build tree, and the checksums of the<br>
> > > >> downloaded files being the same as you've specified via URL_MD5, the<br>
> > > >> download portion will be avoided once there is a local copy of a file<br>
> > > >> available.<br>
> > > >><br>
> > > >><br>
> > > >> HTH,<br>
> > > >> David C.<br>
> > > >><br>
> > > >><br>
> > > >> On Mon, Apr 13, 2015 at 5:04 AM, Cedric Doucet<br>
> > > >> <<a href="javascript:;" onclick="_e(event, 'cvml', 'cedric.doucet@inria.fr')">cedric.doucet@inria.fr</a>><br>
> > > >> wrote:<br>
> > > >> ><br>
> > > >> > Hello!<br>
> > > >> ><br>
> > > >> > I use the ExternalProject_Add function to download third-party<br>
> > > >> > libraries<br>
> > > >> > of<br>
> > > >> > a code.<br>
> > > >> ><br>
> > > >> > Once a library has been downloaded, I can call "make" as many times<br>
> > > >> > as<br>
> > > >> > I<br>
> > > >> > want without downloading this library again.<br>
> > > >> > It seems that CMake detects that the library has already been<br>
> > > >> > downloaded.<br>
> > > >> ><br>
> > > >> > However, calling "make clean" seems to destroy this feature.<br>
> > > >> > Even if my library is not uninstalled during cleaning, calling<br>
> > > >> > "make"<br>
> > > >> > after<br>
> > > >> > "make clean" will lead CMake to try download the library again.<br>
> > > >> ><br>
> > > >> > How could I tell CMake not to download the library again?<br>
> > > >> ><br>
> > > >> > Thank you very much for your help!<br>
> > > >> ><br>
> > > >> > Cédric<br>
> > > >> ><br>
> > > >> > --<br>
> > > >> ><br>
> > > >> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
> > > >> ><br>
> > > >> > Please keep messages on-topic and check the CMake FAQ at:<br>
> > > >> > <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
> > > >> ><br>
> > > >> > Kitware offers various services to support the CMake community. For<br>
> > > >> > more<br>
> > > >> > information on each offering, please visit:<br>
> > > >> ><br>
> > > >> > CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
> > > >> > CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
> > > >> > CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
> > > >> ><br>
> > > >> > Visit other Kitware open-source projects at<br>
> > > >> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> > > >> ><br>
> > > >> > Follow this link to subscribe/unsubscribe:<br>
> > > >> > <a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
> > > >><br>
> > ><br>
> > --<br>
> ><br>
> > Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
> ><br>
> > Please keep messages on-topic and check the CMake FAQ at:<br>
> > <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
> ><br>
> > Kitware offers various services to support the CMake community. For more<br>
> > information on each offering, please visit:<br>
> ><br>
> > CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
> > CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
> > CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
> ><br>
> > Visit other Kitware open-source projects at<br>
> > <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
> ><br>
> > Follow this link to subscribe/unsubscribe:<br>
> > <a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
> ><br>
> --<br>
><br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at:<br>
> <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Kitware offers various services to support the CMake community. For more<br>
> information on each offering, please visit:<br>
><br>
> CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
> CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
> CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
><br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" target="_blank">http://public.kitware.com/mailman/listinfo/cmake</a><br>
</blockquote></div>