linux - Unsupported protocol while downlod tar.gz package -


i have upgrade cmake version 2.8 3.2

its working charm in cmake 2.8 but, after upgrade fail.

i'm trying build third party library using externalproject_add() cmake function.

externalproject_add(   luacov   url https://github.com/keplerproject/luacov/archive/v0.7.tar.gz   download_dir ${external_project_download_dir}   cmake_args -dcmake_toolchain_file=${my_toolchain_file}   source_dir ${external_project_src_dir}/luacov   binary_dir ${external_project_build_dir}/luacov   update_command ""   patch_command "" ) 

my observation:

  1. using git_repository option, externalproject_add() allow http , https protocol download external project.
  2. using url option, externalproject_add() allow http, not https protocol download external project.

problem:

is there way download , build external project using https protocol?

error:

[ 16%] performing download step (download, verify , extract) 'luacov' -- downloading...  src='https://github.com/keplerproject/luacov/archive/v0.7.tar.gz'  dst='/home/build/my_build/external_projects/downloads/v0.7.tar.gz'  timeout='none' cmake error @ /home/build/my_build/luacov-prefix/src/luacov-stamp/download-luacov.cmake:21 (message):  error: downloading 'https://github.com/keplerproject/luacov/archive/v0.7.tar.gz' failed  status_code: 1 status_string: "unsupported protocol" log: protocol "https" not supported or disabled in libcurl  closing connection -1  make[3]: *** [luacov-prefix/src/luacov-stamp/luacov-download] error 1 make[2]: *** [cmakefiles/luacov.dir/all] error 2 make[1]: *** [cmakefiles/luacov.dir/rule] error 2 make: *** [luacov] error 2 

the problem may curl library shipped cmake isn't build ssl support default. had compile cmake with:

./bootstrap --system-curl make sudo make install 

... , worked, because system's curl has ssl support.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -