ceph/cmake/modules/Findpciaccess.cmake
Kefu Chai 8c2bb7e5c6 cmake: add Find{dpdk,pciaccess}.cmake
to ready the SPDK support

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-02-04 14:03:21 +08:00

16 lines
412 B
CMake

# 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)