mirror of https://github.com/microsoft/vcpkg.git
[vcpkg scripts] Revise vcpkg_from_sourceforge (#48211)
This commit is contained in:
parent
b607037824
commit
ae29913a4f
|
|
@ -28,12 +28,10 @@ function(vcpkg_download_sourceforge out_var)
|
|||
- an organization name followed by a repository name separated by a single slash")
|
||||
endif()
|
||||
|
||||
if(DEFINED arg_REF)
|
||||
if(NOT "${arg_REF}" STREQUAL "")
|
||||
set(url "${sourceforge_host}/${org_name}/files/${repo_name}/${arg_REF}/${arg_FILENAME}")
|
||||
elseif(DEFINED repo_name)
|
||||
set(url "${sourceforge_host}/${org_name}/${repo_name}/files/${arg_FILENAME}")
|
||||
else()
|
||||
set(url "${sourceforge_host}/${org_name}/files/${arg_FILENAME}")
|
||||
set(url "${sourceforge_host}/${arg_REPO}/files/${arg_FILENAME}")
|
||||
endif()
|
||||
|
||||
string(SUBSTRING "${arg_SHA512}" 0 10 sanitized_ref)
|
||||
|
|
|
|||
Loading…
Reference in New Issue