aboutsummaryrefslogtreecommitdiff
path: root/cmake.deps/cmake/BuildLua.cmake
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2024-03-18 12:23:53 +0100
committerdundargoc <33953936+dundargoc@users.noreply.github.com>2024-03-23 13:36:12 +0100
commit2c1e8f7e96926f70151d737ea32f1e6ff3589263 (patch)
treeb15ec6229fcbb724f18a7a7d5db3d10676fd42b7 /cmake.deps/cmake/BuildLua.cmake
parent881f5e59173a4f1b9a4cb16e425709e40d79d0e9 (diff)
downloadrneovim-2c1e8f7e96926f70151d737ea32f1e6ff3589263.tar.gz
rneovim-2c1e8f7e96926f70151d737ea32f1e6ff3589263.tar.bz2
rneovim-2c1e8f7e96926f70151d737ea32f1e6ff3589263.zip
build: use `GIT_REPOSITORY` for local URLs
`GIT_REPOSITORY` will cause cmake to rebuild if local dependency changes, which isn't the case for `URL`. Also document how to test a different commits of a dependency.
Diffstat (limited to 'cmake.deps/cmake/BuildLua.cmake')
-rw-r--r--cmake.deps/cmake/BuildLua.cmake4
1 files changed, 1 insertions, 3 deletions
diff --git a/cmake.deps/cmake/BuildLua.cmake b/cmake.deps/cmake/BuildLua.cmake
index e47720de47..9a9f90db31 100644
--- a/cmake.deps/cmake/BuildLua.cmake
+++ b/cmake.deps/cmake/BuildLua.cmake
@@ -40,10 +40,8 @@ set(LUA_CONFIGURE_COMMAND
-i ${DEPS_BUILD_DIR}/src/lua/src/luaconf.h)
set(LUA_INSTALL_TOP_ARG "INSTALL_TOP=${DEPS_INSTALL_DIR}")
-get_sha(lua ${DEPS_IGNORE_SHA})
+get_externalproject_options(lua ${DEPS_IGNORE_SHA})
ExternalProject_Add(lua
- URL ${LUA_URL}
- ${EXTERNALPROJECT_URL_HASH}
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/lua
CONFIGURE_COMMAND "${LUA_CONFIGURE_COMMAND}"
BUILD_IN_SOURCE 1