]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: require lua if WITH_CEPHFS is enabled
authorKefu Chai <kchai@redhat.com>
Mon, 26 Apr 2021 14:44:16 +0000 (22:44 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 2 May 2021 00:15:15 +0000 (08:15 +0800)
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>
src/CMakeLists.txt

index 54d89e2906038f7db008a9a0d804763256be9163..1d471473d1d71853dcc0264cdd69bfb7e0004401 100644 (file)
@@ -584,7 +584,7 @@ endif(${WITH_LTTNG})
 
 add_subdirectory(global)
 
-if(NOT WIN32)
+if(WITH_CEPHFS)
   find_package(Lua 5.3 REQUIRED)
 endif()