From 8a6716682e6ef59e0396a14d1d83abb6db7b2b81 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Mon, 22 May 2023 19:24:36 -0400 Subject: [PATCH] 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. --- cmake.deps/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()