From bbe461bb741016a94167e369f1b6c8772ad48187 Mon Sep 17 00:00:00 2001 From: Matt Benjamin Date: Tue, 4 May 2021 12:09:45 -0400 Subject: [PATCH] cmake: restore Lua scripting support for RGW RGW linkage with Lua was broken by the following commit: commit 7471fbfa4bf015c972c0e577da2a1ee87f62adfd Author: Kefu Chai Date: Mon Apr 26 22:44:16 2021 +0800 cmake: require lua if WITH_CEPHFS is enabled in src/mds/Mantle.cc, the lua C binding APIs are used, so we should only require lua if WITH_CEPHFS is enabled. Signed-off-by: Kefu Chai Signed-off-by: Matt Benjamin --- src/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d12e8b726db53..032be4f0afe4d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -589,7 +589,8 @@ endif(${WITH_LTTNG}) add_subdirectory(global) -if(WITH_CEPHFS) +# RGW also support Lua scripting +if(WITH_CEPHFS OR WITH_RADOSGW) find_package(Lua 5.3 REQUIRED) endif() -- 2.39.5