diff options
author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-11-03 13:36:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 13:36:25 +0100 |
commit | a766695c8b2c0b53b0b9f9f17bcff117183b21f9 (patch) | |
tree | d92dde6246c41e43432ca169e3d1ca3f4af290b7 /cmake | |
parent | a061d53e18168130aad537a9e8012390834ff8c2 (diff) | |
parent | 8e73cf67314095fe7240be5e57232ea3d20aac94 (diff) | |
download | rneovim-a766695c8b2c0b53b0b9f9f17bcff117183b21f9.tar.gz rneovim-a766695c8b2c0b53b0b9f9f17bcff117183b21f9.tar.bz2 rneovim-a766695c8b2c0b53b0b9f9f17bcff117183b21f9.zip |
Merge pull request #12931 from vigoux/treesitter-bundled
bundle: move tree-sitter as a bundled dep
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/FindTreesitter.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cmake/FindTreesitter.cmake b/cmake/FindTreesitter.cmake new file mode 100644 index 0000000000..8ba3b72d28 --- /dev/null +++ b/cmake/FindTreesitter.cmake @@ -0,0 +1,11 @@ +# - Try to find tree-sitter +# Once done, this will define +# +# TREESITTER_FOUND - system has tree-sitter +# TREESITTER_INCLUDE_DIRS - the tree-sitter include directories +# TREESITTER_LIBRARIES - link these to use tree-sitter + +include(LibFindMacros) + +libfind_pkg_detect(TREESITTER tree-sitter FIND_PATH tree_sitter/api.h FIND_LIBRARY tree-sitter) +libfind_process(TREESITTER) |