]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Add common/PluginRegistry.cc to CMakeLists.txt 6805/head
authorPete Zaitcev <zaitcev@kotori.zaitcev.us>
Fri, 4 Dec 2015 22:05:27 +0000 (15:05 -0700)
committerPete Zaitcev <zaitcev@kotori.zaitcev.us>
Fri, 4 Dec 2015 23:24:08 +0000 (16:24 -0700)
Else this happens:

  [ 15%] Linking CXX executable ceph-authtool
  libcommon.a(ceph_context.cc.o): In function `CephContext::CephContext(unsigned int, int)':
  ceph_context.cc:(.text+0x2620): undefined reference to `ceph::PluginRegistry::PluginRegistry(CephContext*)'
  libcommon.a(ceph_context.cc.o): In function `CephContext::~CephContext()':
  ceph_context.cc:(.text+0x3db0): undefined reference to `ceph::PluginRegistry::~PluginRegistry()'
  collect2: error: ld returned 1 exit status
  src/CMakeFiles/ceph-authtool.dir/build.make:120: recipe for target 'src/ceph-authtool' failed
  make[2]: *** [src/ceph-authtool] Error 1
  CMakeFiles/Makefile2:331: recipe for target 'src/CMakeFiles/ceph-authtool.dir/all' failed

The ceph_context.cc is the only user of PluginRegistry at
present, so adding it without conditionals should be correct.

Signed-Off-By: Pete Zaitcev <zaitcev@redhat.com>
src/CMakeLists.txt

index 0d90ee231c280162344cccf724d9057d01447c8c..e4e204f56bcc7b337ddcaabeec330df425900595 100644 (file)
@@ -281,6 +281,7 @@ set(libcommon_files
   common/Thread.cc
   common/Formatter.cc
   common/HeartbeatMap.cc
+  common/PluginRegistry.cc
   common/ceph_fs.cc
   common/ceph_hash.cc
   common/ceph_strings.cc