mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 03:05:11 -07:00
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.
This commit is contained in:
parent
120a4c8e25
commit
712298e1d3
@ -546,7 +546,11 @@ else()
|
||||
endif()
|
||||
set_target_properties(nvim_runtime_deps PROPERTIES FOLDER deps)
|
||||
|
||||
file(COPY ${DEPS_PREFIX}/lib/nvim/parser DESTINATION ${PROJECT_BINARY_DIR}/lib/nvim/)
|
||||
# install treesitter parser if bundled
|
||||
if(EXISTS ${DEPS_PREFIX}/lib/nvim/parser)
|
||||
file(COPY ${DEPS_PREFIX}/lib/nvim/parser DESTINATION ${PROJECT_BINARY_DIR}/lib/nvim/)
|
||||
endif()
|
||||
|
||||
install(DIRECTORY ${PROJECT_BINARY_DIR}/lib/nvim/
|
||||
DESTINATION ${CMAKE_INSTALL_LIBDIR}/nvim/
|
||||
USE_SOURCE_PERMISSIONS)
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user