aboutsummaryrefslogtreecommitdiff
path: root/third-party/cmake/BuildTreesitterParsers.cmake
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2020-02-07 17:47:58 +0100
committerMatthieu Coudron <mattator@gmail.com>2020-02-07 20:42:27 +0100
commit712298e1d3a8567b9857fa90beaa76e8922452c5 (patch)
tree2eac893b3bafb1b13ccebfacdd02efa185924ed0 /third-party/cmake/BuildTreesitterParsers.cmake
parent120a4c8e253a9c7f4fcd25351d4cb12ca99b4f3e (diff)
downloadrneovim-712298e1d3a8567b9857fa90beaa76e8922452c5.tar.gz
rneovim-712298e1d3a8567b9857fa90beaa76e8922452c5.tar.bz2
rneovim-712298e1d3a8567b9857fa90beaa76e8922452c5.zip
build: allow to skip treesitter C parser install
if USE_BUNDLED_TS_PARSERS is set to off, don't try to install the parser. Distribs can install treesitter parsers directly into $CMAKE_LIBRARY_PATH/nvim (and users anywhere in rtp). Also fix the URL.
Diffstat (limited to 'third-party/cmake/BuildTreesitterParsers.cmake')
-rw-r--r--third-party/cmake/BuildTreesitterParsers.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/third-party/cmake/BuildTreesitterParsers.cmake b/third-party/cmake/BuildTreesitterParsers.cmake
index 690a8fbed1..ccc81ae97b 100644
--- a/third-party/cmake/BuildTreesitterParsers.cmake
+++ b/third-party/cmake/BuildTreesitterParsers.cmake
@@ -1,6 +1,6 @@
ExternalProject_Add(treesitter-c
PREFIX ${DEPS_BUILD_DIR}
-URL ${TREESITER_C_URL}
+URL ${TREESITTER_C_URL}
DOWNLOAD_DIR ${DEPS_DOWNLOAD_DIR}/treesitter-c
DOWNLOAD_COMMAND ${CMAKE_COMMAND}
-DPREFIX=${DEPS_BUILD_DIR}