From cc30175480bb3778f4d1470f40736766356ea663 Mon Sep 17 00:00:00 2001 From: Ali Maredia Date: Mon, 4 Jan 2016 16:37:32 -0500 Subject: [PATCH] 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 --- cmake/modules/Findudev.cmake | 2 +- src/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/modules/Findudev.cmake b/cmake/modules/Findudev.cmake index 7a7bbac2d8ba6..5409a079cf9c4 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 2c675e8408f0d..9b609a3bd00d8 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) -- 2.39.5