]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: fix broken RDMA compilation after merge PR #12878 13186/head
authorOren Duer <oren@mellanox.com>
Mon, 30 Jan 2017 09:58:03 +0000 (09:58 +0000)
committerOren Duer <oren@mellanox.com>
Mon, 30 Jan 2017 10:55:26 +0000 (10:55 +0000)
issue: 965984

Change-Id: I2e401acf204069d3907001d276c58d9fb4cd0d58
Signed-off-by: Oren Duer <oren@mellanox.com>
src/CMakeLists.txt

index d7cf3a2b57c1acd98982b985aecb0726edb1f5d9..2553156f73192da1dbdd602deab79b62a8cb6ff1 100644 (file)
@@ -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()