From 40589411304e718cb9a9d12aaeccbf21132462d4 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Fri, 19 Feb 2021 06:39:23 +0100 Subject: [PATCH] fix linking of Lua --- lib/CMakeLists.txt | 4 ++++ lib/hooks/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index a3c0eb61e..aa6479cf9 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -88,6 +88,10 @@ if(WITH_GRAPHVIZ) list(APPEND LIBRARIES PkgConfig::CGRAPH PkgConfig::GVC) endif() +if(WITH_LUA) + list(APPEND LIBRARIES PkgConfig::LUA) +endif() + if(WITH_NODE_INFINIBAND) list(APPEND LIB_SRC memory/ib.cpp) endif() diff --git a/lib/hooks/CMakeLists.txt b/lib/hooks/CMakeLists.txt index 55186e384..efa3c2a7f 100644 --- a/lib/hooks/CMakeLists.txt +++ b/lib/hooks/CMakeLists.txt @@ -46,7 +46,7 @@ set(HOOK_SRC ) if(WITH_LUA) - list(APPEND lua.cpp) + list(APPEND HOOK_SRC lua.cpp) endif() add_library(hooks STATIC ${HOOK_SRC})