[CMake] Platform differences for ExternalProject_add URL

David Cole david.cole at kitware.com
Thu Dec 9 14:41:30 EST 2010


On Thu, Dec 9, 2010 at 1:43 PM, KC Jones <kc.jones at skype.net> wrote:
> On Dec 9, 2010, at 3:18 AM, David Cole wrote:
>> What version of cmake are you using?
>
> I'm running 2.8.2 on Mac and 2.8.0 on Linux.  So I downloaded / built / installed the latest 2.8.3 source on Linux.
>
> Now I'm getting error messages indicating libcurl does not support HTTPS:
>
> ----------
> [  0%] Performing download step (download, verify and extract) for 'poco-1.3.6'
> cd /home/kc/projects/uikit/build/lib/src && /usr/local/bin/cmake -P /home/kc/projects/uikit/build/lib/src/poco-1.3.6-stamp/download-poco-1.3.6.cmake
> -- downloading...
>     src='https://downloads.sourceforge.net/project/poco/sources/poco-1.3.6/poco-1.3.6p2.tar.gz'
>     dst='/home/kc/projects/uikit/build/lib/src/poco-1.3.6p2.tar.gz'
>     timeout='none'
> CMake Error at poco-1.3.6-stamp/download-poco-1.3.6.cmake:19 (message):
>  error: downloading
>  'https://downloads.sourceforge.net/project/poco/sources/poco-1.3.6/poco-1.3.6p2.tar.gz'
>  failed
>
>    status_code: 1
>    status_string: "unsupported protocol"
>    log: libcurl was built with SSL disabled, https: not supported!
>
>  unsupported protocol
> ----------
>
> So I double checked that I have the latest libcurl3 installed, and that I can hit that https url using curl on the command line (where I find that sourceforge is redirecting).  So I'm stumped.  Please advise.
>
> KC Jones
> kc.jones at skype.net
> SkypeId: bernalkc
>
>
>

CMake builds its own curl, without ssl support by default, unless you
point it to the system curl.

You can rebuild CMake with the CMAKE_USE_OPENSSL ON if you have all
the right supporting system libraries installed.

Or you can figure out an http download site to use with the non-ssl builds...


HTH,
David


More information about the CMake mailing list