diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-02-07 17:47:58 +0100 |
---|---|---|
committer | Matthieu Coudron <mattator@gmail.com> | 2020-02-07 20:42:27 +0100 |
commit | 712298e1d3a8567b9857fa90beaa76e8922452c5 (patch) | |
tree | 2eac893b3bafb1b13ccebfacdd02efa185924ed0 /src | |
parent | 120a4c8e253a9c7f4fcd25351d4cb12ca99b4f3e (diff) | |
download | rneovim-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 'src')
-rw-r--r-- | src/nvim/CMakeLists.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/CMakeLists.txt b/src/nvim/CMakeLists.txt index 29427c7d08..b2ae3a814d 100644 --- a/src/nvim/CMakeLists.txt +++ b/src/nvim/CMakeLists.txt @@ -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) |