summaryrefslogtreecommitdiff
path: root/cmake/FindCLN.cmake
diff options
context:
space:
mode:
authorMathias Preiner <mathias.preiner@gmail.com>2021-04-22 13:22:36 -0700
committerGitHub <noreply@github.com>2021-04-22 20:22:36 +0000
commit2aab6ea4c8455f80a2bb08bc88fdb919a79a010f (patch)
treef13574eb6a57cb8be480904d404dc5f937ce40a9 /cmake/FindCLN.cmake
parentc84d66ed370f417bd410c3c7ae5c1db82e637452 (diff)
cmake: Do not require --auto-download for already downloaded dependencies. (#6417)
This will look for already downloaded dependencies in the build directory and therefore will not require --auto-download if the dependencies were already downloaded in a previous build.
Diffstat (limited to 'cmake/FindCLN.cmake')
-rw-r--r--cmake/FindCLN.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/FindCLN.cmake b/cmake/FindCLN.cmake
index 5a2295c4b..b5b37ec59 100644
--- a/cmake/FindCLN.cmake
+++ b/cmake/FindCLN.cmake
@@ -34,7 +34,11 @@ if(CLN_INCLUDE_DIR AND CLN_LIBRARIES)
endif()
if(NOT CLN_FOUND_SYSTEM)
- check_auto_download("CLN" "--no-cln")
+ check_ep_downloaded("CLN-EP")
+ if(NOT CLN-EP_DOWNLOADED)
+ check_auto_download("CLN" "--no-cln")
+ endif()
+
include(ExternalProject)
fail_if_cross_compiling("Windows" "" "CLN" "autoconf fails")
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback