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>
This commit is contained in:
Kefu Chai 2021-04-26 22:44:16 +08:00
parent d275875b0e
commit 7471fbfa4b

View File

@ -584,7 +584,7 @@ endif(${WITH_LTTNG})
add_subdirectory(global)
if(NOT WIN32)
if(WITH_CEPHFS)
find_package(Lua 5.3 REQUIRED)
endif()