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`.
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