From: Ali Maredia Date: Mon, 4 Jan 2016 21:37:32 +0000 (-0500) Subject: cmake: udev linking and Findudev module changes X-Git-Tag: v10.0.3~134^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F7103%2Fhead;p=ceph.git cmake: udev linking and Findudev module changes Linked udev into librbd, restored UDEV_I to UDEV_INCLUDE_DIR in Findudev.cmake Signed-off-by: Ali Maredia --- diff --git a/cmake/modules/Findudev.cmake b/cmake/modules/Findudev.cmake index 7a7bbac2d8ba..5409a079cf9c 100644 --- a/cmake/modules/Findudev.cmake +++ b/cmake/modules/Findudev.cmake @@ -53,5 +53,5 @@ find_package_handle_standard_args(udev DEFAULT_MSG UDEV_LIBRARIES UDEV_INCLUDE_D mark_as_advanced( UDEV_LIBRARY - UDEV_I + UDEV_INCLUDE_DIR ) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 2c675e8408f0..9b609a3bd00d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1008,7 +1008,7 @@ if(${WITH_RBD}) $ $) target_link_libraries(librbd PRIVATE librados common journal - cls_lock_client cls_rbd_client cls_journal_client + cls_lock_client cls_rbd_client cls_journal_client udev ${CMAKE_DL_LIBS}) if(${WITH_LTTNG}) target_link_libraries(librbd PUBLIC librbd_tp)