aboutsummaryrefslogtreecommitdiff
path: root/cmake.deps/cmake/GetBinaryDeps.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake.deps/cmake/GetBinaryDeps.cmake')
-rw-r--r--cmake.deps/cmake/GetBinaryDeps.cmake3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake.deps/cmake/GetBinaryDeps.cmake b/cmake.deps/cmake/GetBinaryDeps.cmake
index 3a2e38250a..da4376998b 100644
--- a/cmake.deps/cmake/GetBinaryDeps.cmake
+++ b/cmake.deps/cmake/GetBinaryDeps.cmake
@@ -22,6 +22,9 @@ function(GetBinaryDep)
message(FATAL_ERROR "${URL_VARNAME} and ${HASH_VARNAME} must be set")
endif()
+ if(USE_EXISTING_SRC_DIR)
+ unset(URL)
+ endif()
ExternalProject_Add(${_gettool_TARGET}
URL ${URL}
URL_HASH SHA256=${HASH}