diff options
author | dundargoc <gocdundar@gmail.com> | 2024-03-18 13:29:24 +0100 |
---|---|---|
committer | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2024-03-19 08:52:03 +0100 |
commit | 187ae6773592eeb98b38d686f52a8d3c5788ff4f (patch) | |
tree | 548eb3c63a590016ddb2b7f6f4e4c2ad640af8a5 /cmake | |
parent | d7448767232f5793248f7c64fdb77921666dc991 (diff) | |
download | rneovim-187ae6773592eeb98b38d686f52a8d3c5788ff4f.tar.gz rneovim-187ae6773592eeb98b38d686f52a8d3c5788ff4f.tar.bz2 rneovim-187ae6773592eeb98b38d686f52a8d3c5788ff4f.zip |
build: introduce variable DEPS_IGNORE_SHA for skipping dependency hash check
This will reduce friction as developers no longer need to provide a hash
when testing out different commits.
To skip the hash check, set `DEPS_IGNORE_SHA` to `TRUE` in
`cmake.deps/CMakeLists.txt`.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Deps.cmake | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmake/Deps.cmake b/cmake/Deps.cmake index 9966e42084..4700d08427 100644 --- a/cmake/Deps.cmake +++ b/cmake/Deps.cmake @@ -54,3 +54,11 @@ if(CMAKE_OSX_ARCHITECTURES) set(DEPS_C_COMPILER "${DEPS_C_COMPILER} -arch ${ARCH}") endforeach() endif() + +function(get_sha name ignore) + unset(EXTERNALPROJECT_URL_HASH) + if(NOT ${ignore}) + string(TOUPPER ${name} name_allcaps) + set(EXTERNALPROJECT_URL_HASH URL_HASH SHA256=${${name_allcaps}_SHA256} PARENT_SCOPE) + endif() +endfunction() |