aboutsummaryrefslogtreecommitdiff
path: root/cmake.deps/cmake/BuildTreesitter.cmake
diff options
context:
space:
mode:
authordundargoc <gocdundar@gmail.com>2022-09-29 21:46:14 +0200
committerdundargoc <gocdundar@gmail.com>2022-10-02 12:39:48 +0200
commit59d5f692f8f563bf6f7c232f971ad764316e4466 (patch)
treeb79fedf7b1e566a5267818f14a1aea4fe5f7d113 /cmake.deps/cmake/BuildTreesitter.cmake
parent913651d1f102eed11db9046fdec72e84958a7c6a (diff)
downloadrneovim-59d5f692f8f563bf6f7c232f971ad764316e4466.tar.gz
rneovim-59d5f692f8f563bf6f7c232f971ad764316e4466.tar.bz2
rneovim-59d5f692f8f563bf6f7c232f971ad764316e4466.zip
build: rely on builtin cmake downloading rather than custom script
DownloadAndExtractFile.cmake was initially introduced as a workaround to avoid the massive amounts of logs generated by the download progress. This is not a problem anymore as ExternalProject_Add has had the DOWNLOAD_NO_PROGRESS option since cmake version 3.1.
Diffstat (limited to 'cmake.deps/cmake/BuildTreesitter.cmake')
-rw-r--r--cmake.deps/cmake/BuildTreesitter.cmake10
1 files changed, 2 insertions, 8 deletions
diff --git a/cmake.deps/cmake/BuildTreesitter.cmake b/cmake.deps/cmake/BuildTreesitter.cmake
index fe4e9e2c93..aa545b3a3b 100644
--- a/cmake.deps/cmake/BuildTreesitter.cmake
+++ b/cmake.deps/cmake/BuildTreesitter.cmake
@@ -20,16 +20,10 @@ endif()
ExternalProject_Add(tree-sitter
PREFIX ${DEPS_BUILD_DIR}
URL ${TREESITTER_URL}
+ URL_HASH SHA256=${TREESITTER_SHA256}
+ DOWNLOAD_NO_PROGRESS TRUE
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/tree-sitter
INSTALL_DIR ${DEPS_INSTALL_DIR}
- DOWNLOAD_COMMAND ${CMAKE_COMMAND}
- -DPREFIX=${DEPS_BUILD_DIR}
- -DDOWNLOAD_DIR=${DEPS_DOWNLOAD_DIR}/tree-sitter
- -DURL=${TREESITTER_URL}
- -DEXPECTED_SHA256=${TREESITTER_SHA256}
- -DTARGET=tree-sitter
- -DUSE_EXISTING_SRC_DIR=${USE_EXISTING_SRC_DIR}
- -P ${CMAKE_CURRENT_SOURCE_DIR}/cmake/DownloadAndExtractFile.cmake
BUILD_IN_SOURCE 1
CONFIGURE_COMMAND "${TREESITTER_CONFIGURE_COMMAND}"
BUILD_COMMAND "${TREESITTER_BUILD_COMMAND}"