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/BuildLuarocks.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/BuildLuarocks.cmake')
-rw-r--r-- | cmake.deps/cmake/BuildLuarocks.cmake | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/cmake.deps/cmake/BuildLuarocks.cmake b/cmake.deps/cmake/BuildLuarocks.cmake index ad0ee3f661..1f1bb94741 100644 --- a/cmake.deps/cmake/BuildLuarocks.cmake +++ b/cmake.deps/cmake/BuildLuarocks.cmake @@ -81,9 +81,6 @@ else() message(FATAL_ERROR "Trying to build luarocks in an unsupported system ${CMAKE_SYSTEM_NAME}/${CMAKE_C_COMPILER_ID}") endif() -if(USE_EXISTING_SRC_DIR) - unset(LUAROCKS_URL) -endif() ExternalProject_Add(luarocks URL ${LUAROCKS_URL} URL_HASH SHA256=${LUAROCKS_SHA256} |