|
|
@ -133,10 +133,14 @@ function(hunter_gate_self root version sha1 result) |
|
|
|
|
|
|
|
|
|
|
|
string(SUBSTRING "${sha1}" 0 7 archive_id) |
|
|
|
string(SUBSTRING "${sha1}" 0 7 archive_id) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(EXISTS "${root}/cmake/Hunter") |
|
|
|
|
|
|
|
set(hunter_self "${root}") |
|
|
|
|
|
|
|
else() |
|
|
|
set( |
|
|
|
set( |
|
|
|
hunter_self |
|
|
|
hunter_self |
|
|
|
"${root}/_Base/Download/Hunter/${version}/${archive_id}/Unpacked" |
|
|
|
"${root}/_Base/Download/Hunter/${version}/${archive_id}/Unpacked" |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
endif() |
|
|
|
|
|
|
|
|
|
|
|
set("${result}" "${hunter_self}" PARENT_SCOPE) |
|
|
|
set("${result}" "${hunter_self}" PARENT_SCOPE) |
|
|
|
endfunction() |
|
|
|
endfunction() |
|
|
@ -490,6 +494,12 @@ macro(HunterGate) |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
set(_master_location "${_hunter_self}/cmake/Hunter") |
|
|
|
set(_master_location "${_hunter_self}/cmake/Hunter") |
|
|
|
|
|
|
|
if(EXISTS "${HUNTER_GATE_ROOT}/cmake/Hunter") |
|
|
|
|
|
|
|
# Hunter downloaded manually (e.g. by 'git clone') |
|
|
|
|
|
|
|
set(_unused "xxxxxxxxxx") |
|
|
|
|
|
|
|
set(HUNTER_GATE_SHA1 "${_unused}") |
|
|
|
|
|
|
|
set(HUNTER_GATE_VERSION "${_unused}") |
|
|
|
|
|
|
|
else() |
|
|
|
get_filename_component(_archive_id_location "${_hunter_self}/.." ABSOLUTE) |
|
|
|
get_filename_component(_archive_id_location "${_hunter_self}/.." ABSOLUTE) |
|
|
|
set(_done_location "${_archive_id_location}/DONE") |
|
|
|
set(_done_location "${_archive_id_location}/DONE") |
|
|
|
set(_sha1_location "${_archive_id_location}/SHA1") |
|
|
|
set(_sha1_location "${_archive_id_location}/SHA1") |
|
|
@ -522,6 +532,7 @@ macro(HunterGate) |
|
|
|
"try to update Hunter/HunterGate" |
|
|
|
"try to update Hunter/HunterGate" |
|
|
|
) |
|
|
|
) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|
|
|
|
|
endif() |
|
|
|
include("${_master_location}") |
|
|
|
include("${_master_location}") |
|
|
|
set_property(GLOBAL PROPERTY HUNTER_GATE_DONE YES) |
|
|
|
set_property(GLOBAL PROPERTY HUNTER_GATE_DONE YES) |
|
|
|
endif() |
|
|
|
endif() |
|
|
|