Fix CMake script for static, auto-download, cln configuration (#7957)
authorMatthew Sotoudeh <masotoudeh@ucdavis.edu>
Tue, 18 Jan 2022 17:24:02 +0000 (09:24 -0800)
committerGitHub <noreply@github.com>
Tue, 18 Jan 2022 17:24:02 +0000 (17:24 +0000)
The script was previously creating a 'CLN_STATIC_LIBRARIES' variable that
wasn't known about elsewhere in the code and caused issues when the Makefiles
depended on a CLN_LIBRARIES variable. Instead, the static libraries should just
go into CLN_LIBRARIES as normal.

This only seems to have affected the case where cln is set to auto-download and
the build is static.

Signed-off-by: Matthew Sotoudeh sotoudeh@stanford.edu
cmake/FindCLN.cmake

index 0255141899ee4220f76f5837e4c69a24dd205a66..b12c8168575119be59770e7fe492b92c6d4987ac 100644 (file)
@@ -74,7 +74,7 @@ if(NOT CLN_FOUND_SYSTEM)
   if(BUILD_SHARED_LIBS)
     set(CLN_LIBRARIES "${DEPS_BASE}/lib/libcln${CMAKE_SHARED_LIBRARY_SUFFIX}")
   else()
-    set(CLN_STATIC_LIBRARIES "${DEPS_BASE}/lib/libcln.a")
+    set(CLN_LIBRARIES "${DEPS_BASE}/lib/libcln.a")
   endif()
 endif()