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.
This commit is contained in:
James McCoy 2023-05-22 19:24:36 -04:00
parent a1d885dbef
commit 8a6716682e
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -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()