From 697fbbf41621a30c21408f1edeba87f9064ab7de Mon Sep 17 00:00:00 2001 From: Andres Noetzli Date: Fri, 23 Jul 2021 17:06:51 -0700 Subject: [PATCH] Fix CLN build (#6920) Currently, the CLN `CONFIGURE_COMMAND` chains multiple commands using `&&` but this does not seem to work with CMake 3.20.4 and CMake 3.19.7 and is also not the recommended way of doing it. The commit fixes the issue by using additional `COMMAND`s and also switches to using the CMake's `chdir` instead of `cd`. --- cmake/FindCLN.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/FindCLN.cmake b/cmake/FindCLN.cmake index b5b37ec59..e802da2ef 100644 --- a/cmake/FindCLN.cmake +++ b/cmake/FindCLN.cmake @@ -58,7 +58,10 @@ if(NOT CLN_FOUND_SYSTEM) URL "https://www.ginac.de/CLN/cln.git/?p=cln.git\\\;a=snapshot\\\;h=cln_${CLN_TAG}\\\;sf=tgz" URL_HASH SHA1=71d02b90ef0575f06b7bafb8690f73e8064d8228 DOWNLOAD_NAME cln.tgz - CONFIGURE_COMMAND cd && ./autogen.sh && autoreconf -iv + CONFIGURE_COMMAND + ${CMAKE_COMMAND} -E chdir ./autogen.sh + COMMAND + ${CMAKE_COMMAND} -E chdir autoreconf -iv COMMAND /configure --prefix= --disable-shared --enable-static --with-pic BUILD_BYPRODUCTS /lib/libcln.a -- 2.30.2