From: Willem Jan Withagen Date: Sat, 3 Sep 2016 14:23:02 +0000 (+0200) Subject: src/CMakeLists.txt: exclude parts not buildable on FreeBSD X-Git-Tag: v11.0.1~305^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=c7c07da5a23be3c8652e9d65b18778199f1383c2;p=ceph.git src/CMakeLists.txt: exclude parts not buildable on FreeBSD - FreeBSD does not have keyutils or any kernel type security store So using secret.c is not really relevant here - Have common/secret.c depend on KEYUTILS_FOUND - This also excludes building mount.cephfs, Next to the fact that this is 100% linux bases mount stuff - krbd is the Linux kernel version for RBD based disks, but again completely Linux based and porting to FreeBSD, if any, has to follow a different route Signed-off-by: Willem Jan Withagen --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9afe2b3ef91e..e6b2a94c0d79 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -696,9 +696,11 @@ install(PROGRAMS add_subdirectory(bash_completion) -set(parse_secret_files - common/secret.c) -add_library(parse_secret_objs OBJECT ${parse_secret_files}) +if(KEYUTILS_FOUND) + set(parse_secret_files + common/secret.c) + add_library(parse_secret_objs OBJECT ${parse_secret_files}) +endif() if(WITH_LIBCEPHFS) add_subdirectory(client) @@ -750,7 +752,9 @@ endif(WITH_LIBCEPHFS) add_subdirectory(journal) -add_library(krbd_objs OBJECT krbd.cc) +if(LINUX) + add_library(krbd_objs OBJECT krbd.cc) +endif() if(${WITH_RBD}) add_subdirectory(librbd)