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:
- using
git_repository
option,externalproject_add()
allowhttp
,https
protocol download external project. - using
url
option,externalproject_add()
allowhttp
, nothttps
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.