diff options
author | dundargoc <33953936+dundargoc@users.noreply.github.com> | 2023-03-04 00:30:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-04 00:30:07 +0100 |
commit | 0007aa50bd3d54259bb4ae717c114f5524ec59fa (patch) | |
tree | fc8867b451c5a0dff7745d99982b31aab8b76895 /cmake.deps/cmake/BuildTreesitterParsers.cmake | |
parent | 7e90f247e7b3add74a49895054a543c2140bbb08 (diff) | |
download | rneovim-0007aa50bd3d54259bb4ae717c114f5524ec59fa.tar.gz rneovim-0007aa50bd3d54259bb4ae717c114f5524ec59fa.tar.bz2 rneovim-0007aa50bd3d54259bb4ae717c114f5524ec59fa.zip |
build: unset variables ending with "URL" if USE_EXISTING_SRC_DIR is ON
This will reduce required boilerplate, but more importantly it will
automatically unset variables ending on URL. This will help people
needing to avoid to unset the URL variable each time a new dependency is
added.
It is possible that this may remove a non-download variable ending on
"URL" in the future, however, the risk of this is likely much lower than
the risk of someone forgetting to unset the variable.
Diffstat (limited to 'cmake.deps/cmake/BuildTreesitterParsers.cmake')
-rw-r--r-- | cmake.deps/cmake/BuildTreesitterParsers.cmake | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/cmake.deps/cmake/BuildTreesitterParsers.cmake b/cmake.deps/cmake/BuildTreesitterParsers.cmake index 774fc8a8c3..1c5d69882d 100644 --- a/cmake.deps/cmake/BuildTreesitterParsers.cmake +++ b/cmake.deps/cmake/BuildTreesitterParsers.cmake @@ -1,8 +1,5 @@ function(BuildTSParser LANG TS_URL TS_SHA256 TS_CMAKE_FILE) set(NAME treesitter-${LANG}) - if(USE_EXISTING_SRC_DIR) - unset(TS_URL) - endif() ExternalProject_Add(${NAME} URL ${TS_URL} URL_HASH SHA256=${TS_SHA256} |