From: Kefu Chai Date: Mon, 26 Apr 2021 14:44:16 +0000 (+0800) Subject: cmake: require lua if WITH_CEPHFS is enabled X-Git-Tag: v17.1.0~2082^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7471fbfa4bf015c972c0e577da2a1ee87f62adfd;p=ceph.git 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 --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 54d89e29060..1d471473d1d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -584,7 +584,7 @@ endif(${WITH_LTTNG}) add_subdirectory(global) -if(NOT WIN32) +if(WITH_CEPHFS) find_package(Lua 5.3 REQUIRED) endif()