diff options
author | fuzzard <fuzzard@kodi.tv> | 2022-01-17 15:08:46 +1000 |
---|---|---|
committer | fuzzard <fuzzard@kodi.tv> | 2022-01-24 14:38:59 +1000 |
commit | 3d4103be0f4a6d215a173ae7bf3184cf4d6058af (patch) | |
tree | 0c9c8437242beb139d00d01180360b325b40471c /cmake/modules/FindRapidJSON.cmake | |
parent | eca10dcd5b5d8881c2345a9c48caa2857f18f4af (diff) |
[cmake] add URL_HASH to ExternalProject_add calls in Find modules
Provides a SHA512 hash to our possible "Internal" depends to verify download of tarballs.
Implementation currently supports SHA256, SHA512 and any additional cmake supported algo's
can be implemented easily. This supports differing supported hash types per dependency if
desired, so if a new algo is introduced for a particular dependency, we dont have to mass
change all other existing hash types.
Diffstat (limited to 'cmake/modules/FindRapidJSON.cmake')
-rw-r--r-- | cmake/modules/FindRapidJSON.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/modules/FindRapidJSON.cmake b/cmake/modules/FindRapidJSON.cmake index 8bf7fe1ac8..8dcaf658e0 100644 --- a/cmake/modules/FindRapidJSON.cmake +++ b/cmake/modules/FindRapidJSON.cmake @@ -33,6 +33,7 @@ if(ENABLE_INTERNAL_RapidJSON) set(RapidJSON_INCLUDE_DIR ${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR}/include) externalproject_add(rapidjson URL ${RapidJSON_URL} + URL_HASH ${RAPIDJSON_HASH} DOWNLOAD_DIR ${TARBALL_DIR} PREFIX ${CORE_BUILD_DIR}/rapidjson CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_BINARY_DIR}/${CORE_BUILD_DIR} |