From: Oren Duer Date: Mon, 30 Jan 2017 09:58:03 +0000 (+0000) Subject: cmake: fix broken RDMA compilation after merge PR #12878 X-Git-Tag: v12.0.0~63^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=94a27ecf3957606a95ad1bab70726e051256a007;p=ceph.git cmake: fix broken RDMA compilation after merge PR #12878 issue: 965984 Change-Id: I2e401acf204069d3907001d276c58d9fb4cd0d58 Signed-off-by: Oren Duer --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d7cf3a2b57c..2553156f731 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -563,8 +563,8 @@ set(ceph_common_deps ${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) + list(APPEND ceph_common_deps ${RDMA_LIBRARY}) +endif() if(NOT WITH_SYSTEM_BOOST) list(APPEND ceph_common_deps ${ZLIB_LIBRARIES}) endif()