[cmake] refactor: cpmfile, deps prefetch, force system and more #322

Merged
CamilleLaVey merged 18 commits from refactor/cpmfile into master 2025-08-29 00:18:03 +02:00
Showing only changes of commit 767596ed38 - Show all commits

View file

@ -375,10 +375,14 @@ function(AddPackage)
file(DOWNLOAD ${hash_url} ${outfile})
endif()
if (EXISTS ${outfile})
file(READ ${outfile} pkg_hash_tmp)
endif()
if (DEFINED ${pkg_hash_tmp})
set(pkg_hash "${hash_algo}=${pkg_hash_tmp}")
endif()
endif()
# TODO(crueter): force system/bundled for specific packages via options e.g httplib_SYSTEM
if (NOT CPMUTIL_DEFAULT_SYSTEM)