aboutsummaryrefslogtreecommitdiff
path: root/cmake.deps/cmake/BuildLpeg.cmake
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-03-18 13:29:24 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-03-19 08:52:03 +0100
commit187ae6773592eeb98b38d686f52a8d3c5788ff4f (patch)
tree548eb3c63a590016ddb2b7f6f4e4c2ad640af8a5 /cmake.deps/cmake/BuildLpeg.cmake
parentd7448767232f5793248f7c64fdb77921666dc991 (diff)
downloadrneovim-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.deps/cmake/BuildLpeg.cmake')
-rw-r--r--cmake.deps/cmake/BuildLpeg.cmake3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake.deps/cmake/BuildLpeg.cmake b/cmake.deps/cmake/BuildLpeg.cmake
index b65baf4c0f..e46a3cb16f 100644
--- a/cmake.deps/cmake/BuildLpeg.cmake
+++ b/cmake.deps/cmake/BuildLpeg.cmake
@@ -1,6 +1,7 @@
+get_sha(lpeg ${DEPS_IGNORE_SHA})
ExternalProject_Add(lpeg
URL ${LPEG_URL}
- URL_HASH SHA256=${LPEG_SHA256}
+ ${EXTERNALPROJECT_URL_HASH}
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/lpeg
PATCH_COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_CURRENT_SOURCE_DIR}/cmake/LpegCMakeLists.txt