]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
src/CMakeLists.txt: exclude parts not buildable on FreeBSD
authorWillem Jan Withagen <wjw@digiware.nl>
Sat, 3 Sep 2016 14:23:02 +0000 (16:23 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Wed, 7 Sep 2016 10:43:02 +0000 (12:43 +0200)
 - 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 <wjw@digiware.nl>
src/CMakeLists.txt

index 9afe2b3ef91e3839b46b5e2dcdd34445a6b5753f..e6b2a94c0d79ea3821404f3f4e3c2105a21cbe22 100644 (file)
@@ -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)