]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #12878 from tchaikov/wip-cmake
authorKefu Chai <tchaikov@gmail.com>
Thu, 26 Jan 2017 15:59:36 +0000 (23:59 +0800)
committerGitHub <noreply@github.com>
Thu, 26 Jan 2017 15:59:36 +0000 (23:59 +0800)
cmake: link ceph-{mgr,mon,mds,osd} against libcommon statically

Reviewed-by: Casey Bodley <cbodley@redhat.com>
1  2 
src/CMakeLists.txt

index 0b75a5e17275b2a24fe58a7ea10383982fad7b36,86c93e2ff0f9dad42d865ba75ce09cd426de2719..d7cf3a2b57c1acd98982b985aecb0726edb1f5d9
@@@ -563,20 -562,8 +562,11 @@@ set(ceph_common_dep
    ${Boost_IOSTREAMS_LIBRARY}
    ${BLKID_LIBRARIES} ${Backtrace_LIBRARIES}
    ${CRYPTO_LIBS} ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS})
 +if(HAVE_RDMA)
 +  target_link_libraries(ceph-common ${RDMA_LIBRARY})
 +endif(HAVE_RDMA)
  if(NOT WITH_SYSTEM_BOOST)
-   target_link_libraries(ceph-common ${ZLIB_LIBRARIES})
- endif()
- install(TARGETS ceph-common DESTINATION ${CMAKE_INSTALL_PKGLIBDIR})
- if(WITH_EMBEDDED)
-   add_library(cephd_common STATIC
-     $<TARGET_OBJECTS:common_buffer_obj>
-     $<TARGET_OBJECTS:common_texttable_obj>
-     $<TARGET_OBJECTS:compressor_objs>
-     $<TARGET_OBJECTS:common-objs>
-     $<TARGET_OBJECTS:common_mountcephfs_objs>)
+   list(APPEND ceph_common_deps ${ZLIB_LIBRARIES})
  endif()
  
  set_source_files_properties(${CMAKE_SOURCE_DIR}/src/ceph_ver.c