diff options
author | Andres Noetzli <andres.noetzli@gmail.com> | 2021-07-23 17:06:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-24 00:06:51 +0000 |
commit | 697fbbf41621a30c21408f1edeba87f9064ab7de (patch) | |
tree | 4fdbf71a995cfb32891010e09c8d03476016c502 | |
parent | 1dfc52234354e8a88aeb2e0d05d83930fc434893 (diff) |
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`.
-rw-r--r-- | cmake/FindCLN.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
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 <SOURCE_DIR> && ./autogen.sh && autoreconf -iv + CONFIGURE_COMMAND + ${CMAKE_COMMAND} -E chdir <SOURCE_DIR> ./autogen.sh + COMMAND + ${CMAKE_COMMAND} -E chdir <SOURCE_DIR> autoreconf -iv COMMAND <SOURCE_DIR>/configure --prefix=<INSTALL_DIR> --disable-shared --enable-static --with-pic BUILD_BYPRODUCTS <INSTALL_DIR>/lib/libcln.a |