Skip to content

Commit

Permalink
cmake,modules: remove Findpciaccess.cmake
Browse files Browse the repository at this point in the history
Now SPDK uses the DPDK's library for PCI device
enumeration, we can remove this dependency

Signed-off-by: optimistyzy <optimistyzy@gmail.com>
  • Loading branch information
optimistyzy committed Jan 4, 2017
1 parent 988aea4 commit f4c3167
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 21 deletions.
1 change: 0 additions & 1 deletion CMakeLists.txt
Expand Up @@ -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)
Expand Down
15 changes: 0 additions & 15 deletions cmake/modules/Findpciaccess.cmake

This file was deleted.

6 changes: 2 additions & 4 deletions src/os/CMakeLists.txt
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion src/os/bluestore/NVMEDevice.h
Expand Up @@ -19,7 +19,6 @@

#include <queue>
#include <map>
#include <pciaccess.h>
#include <limits>

// since _Static_assert introduced in c11
Expand Down

0 comments on commit f4c3167

Please sign in to comment.