aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2023-05-22 19:24:36 -0400
committerJames McCoy <jamessan@jamessan.com>2023-05-22 19:24:36 -0400
commit8a6716682e6ef59e0396a14d1d83abb6db7b2b81 (patch)
treedb1ecc317242aaedd55f30420444048c56591a4f
parenta1d885dbefb0a7163c622bc66b5629553ef311c5 (diff)
downloadrneovim-8a6716682e6ef59e0396a14d1d83abb6db7b2b81.tar.gz
rneovim-8a6716682e6ef59e0396a14d1d83abb6db7b2b81.tar.bz2
rneovim-8a6716682e6ef59e0396a14d1d83abb6db7b2b81.zip
fix(deps): restore functionality of USE_EXISTING_SRC_DIR
30a0299bc removed the USE_EXISTING_SRC_DIR hack which broke building the nightly PPA since ExternalProject tried to download the sources.
-rw-r--r--cmake.deps/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake.deps/CMakeLists.txt b/cmake.deps/CMakeLists.txt
index 4666ed4f1a..86d2228e68 100644
--- a/cmake.deps/CMakeLists.txt
+++ b/cmake.deps/CMakeLists.txt
@@ -88,7 +88,11 @@ foreach(dep ${DEPENDENCIES})
list(GET dep 0 name)
list(GET dep 1 value)
if(NOT ${name})
- set(${name} ${value})
+ # _URL variables must NOT be set when USE_EXISTING_SRC_DIR is set,
+ # otherwise ExternalProject will try to re-download the sources.
+ if(NOT USE_EXISTING_SRC_DIR)
+ set(${name} ${value})
+ endif()
endif()
endforeach()