]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: restore Lua scripting support for RGW 41152/head
authorMatt Benjamin <mbenjamin@redhat.com>
Tue, 4 May 2021 16:09:45 +0000 (12:09 -0400)
committerMatt Benjamin <mbenjamin@redhat.com>
Tue, 4 May 2021 16:09:45 +0000 (12:09 -0400)
RGW linkage with Lua was broken by the following commit:

commit 7471fbfa4bf015c972c0e577da2a1ee87f62adfd
Author: Kefu Chai <kchai@redhat.com>
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 <kchai@redhat.com>
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/CMakeLists.txt

index d12e8b726db530460b9b0f641c5236dfecc56e57..032be4f0afe4d59d8533cdbeaaf13695fb94b96e 100644 (file)
@@ -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()