]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake,modules: remove Findpciaccess.cmake 12776/head
authoroptimistyzy <optimistyzy@gmail.com>
Wed, 4 Jan 2017 02:17:06 +0000 (10:17 +0800)
committeroptimistyzy <optimistyzy@gmail.com>
Wed, 4 Jan 2017 04:32:30 +0000 (12:32 +0800)
Now SPDK uses the DPDK's library for PCI device
enumeration, we can remove this dependency

Signed-off-by: optimistyzy <optimistyzy@gmail.com>
CMakeLists.txt
cmake/modules/Findpciaccess.cmake [deleted file]
src/os/CMakeLists.txt
src/os/bluestore/NVMEDevice.h

index 0ed4c24f7edcc496c1c93d420fff20ce2cd16d3f..80260d5d197e80f63e5b91c0659c825f49b19241 100644 (file)
@@ -219,7 +219,6 @@ endif(${WITH_XFS})
 
 option(WITH_SPDK "Enable SPDK" OFF)
 if(WITH_SPDK)
-  find_package(pciaccess REQUIRED)
   find_package(dpdk REQUIRED)
   set(HAVE_SPDK TRUE)
 endif(WITH_SPDK)
diff --git a/cmake/modules/Findpciaccess.cmake b/cmake/modules/Findpciaccess.cmake
deleted file mode 100644 (file)
index 6e5bd52..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-# Try to find pciaccess
-#
-# Once done, this will define
-#
-# PCIACCESS_FOUND
-# PCIACCESS_INCLUDE_DIR
-# PCIACCESS_LIBRARIES
-
-find_path(PCIACCESS_INCLUDE_DIR pciaccess.h)
-find_library(PCIACCESS_LIBRARIES pciaccess)
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(PCIACCESS DEFAULT_MSG PCIACCESS_LIBRARIES PCIACCESS_INCLUDE_DIR)
-
-mark_as_advanced(PCIACCESS_INCLUDE_DIR PCIACCESS_LIBRARIES)
index 2c4138a9319f86120cf38a99613f6780b72a6523..f751f97ed038e14ecc3b0519756f2547c70d16dd 100644 (file)
@@ -71,12 +71,10 @@ endif()
 if(WITH_SPDK)
   target_link_libraries(os
     ${SPDK_LIBRARIES}
-    ${DPDK_LIBRARIES}
-    ${PCIACCESS_LIBRARIES})
+    ${DPDK_LIBRARIES})
   target_include_directories(os
     PRIVATE
-    ${DPDK_INCLUDE_DIR}
-    ${PCIACCESS_INCLUDE_DIR})
+    ${DPDK_INCLUDE_DIR})
 endif(WITH_SPDK)
 
 if(WITH_LTTNG)
index 244e81ade368be11e4ecb9bcb7fb7d3d68f2946c..5f44738f8b0c36c53c542cee0440924078496410 100644 (file)
@@ -19,7 +19,6 @@
 
 #include <queue>
 #include <map>
-#include <pciaccess.h>
 #include <limits>
 
 // since _Static_assert introduced in c11