]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/CMakeLists.txt: Move parse_secret_objs setting within definition block 12785/head
authorWillem Jan Withagen <wjw@digiware.nl>
Wed, 4 Jan 2017 12:29:45 +0000 (13:29 +0100)
committerWillem Jan Withagen <wjw@digiware.nl>
Wed, 4 Jan 2017 12:29:45 +0000 (13:29 +0100)
 - parse_secret_objs is only used when secret.c is actually used
   and that is with CEPHFS or RBD

This removes a Cmake warning on FreeBSD

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/CMakeLists.txt

index 0531666e3e2d299e1253f39197d776871dc3722d..f913f6654e6bd6196583021fc86560e06995e32e 100644 (file)
@@ -827,8 +827,8 @@ add_subdirectory(bash_completion)
 if(WITH_LIBCEPHFS OR WITH_RBD)
   set(parse_secret_files
     common/secret.c)
+  add_library(parse_secret_objs OBJECT ${parse_secret_files})
 endif()
-add_library(parse_secret_objs OBJECT ${parse_secret_files})
 
 if(WITH_LIBCEPHFS)
   add_subdirectory(client)