From: Matt Benjamin Date: Tue, 4 May 2021 16:09:45 +0000 (-0400) Subject: cmake: restore Lua scripting support for RGW X-Git-Tag: v17.1.0~2076^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=bbe461bb741016a94167e369f1b6c8772ad48187;p=ceph.git 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 --- 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()