[cmake] refactor: cpmfile, deps prefetch, force system and more #322
1 changed files with 6 additions and 2 deletions
|
@ -375,10 +375,14 @@ function(AddPackage)
|
||||||
file(DOWNLOAD ${hash_url} ${outfile})
|
file(DOWNLOAD ${hash_url} ${outfile})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if (EXISTS ${outfile})
|
||||||
file(READ ${outfile} pkg_hash_tmp)
|
file(READ ${outfile} pkg_hash_tmp)
|
||||||
|
endif()
|
||||||
|
|
||||||
|
if (DEFINED ${pkg_hash_tmp})
|
||||||
set(pkg_hash "${hash_algo}=${pkg_hash_tmp}")
|
set(pkg_hash "${hash_algo}=${pkg_hash_tmp}")
|
||||||
endif()
|
endif()
|
||||||
|
endif()
|
||||||
|
|
||||||
# TODO(crueter): force system/bundled for specific packages via options e.g httplib_SYSTEM
|
# TODO(crueter): force system/bundled for specific packages via options e.g httplib_SYSTEM
|
||||||
if (NOT CPMUTIL_DEFAULT_SYSTEM)
|
if (NOT CPMUTIL_DEFAULT_SYSTEM)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue