there is no well-known distro packaging fio.h, so drop this option.
Signed-off-by: Kefu Chai <kchai@redhat.com>
# fio
option(WITH_FIO "build with fio plugin enabled" OFF)
-option(WITH_SYSTEM_FIO "require and build with system fio" OFF)
-if(WITH_SYSTEM_FIO)
- find_package(fio REQUIRED)
-elseif(WITH_FIO)
+if(WITH_FIO)
if (NOT FIO_INCLUDE_DIR)
# Use local external fio if include directory is not set
set(FIO_INCLUDE_DIR ${CMAKE_BINARY_DIR}/src/fio)
+++ /dev/null
-# - Find Fio
-# Find the fio includes
-#
-# FIO_INCLUDE_DIR - where to find fio.h
-# FIO_FOUND - True if fio is found.
-
-find_path(FIO_INCLUDE_DIR NAMES fio.h HINTS ENV FIO_ROOT_DIR)
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(fio DEFAULT_MSG FIO_INCLUDE_DIR)
-
-mark_as_advanced(FIO_INCLUDE_DIR)
add_subdirectory(crimson)
endif()
add_subdirectory(system)
-if(WITH_FIO OR WITH_SYSTEM_FIO)
+if(WITH_FIO)
add_subdirectory(fio)
endif()
add_subdirectory(lazy-omap-stats)
add_dependencies(tests radosgwd radosgw-admin)
endif()
#add dependency from fio just to ensure the plugin build isn't failing
-if(WITH_FIO OR WITH_SYSTEM_FIO)
+if(WITH_FIO)
add_dependencies(tests fio_ceph_objectstore)
endif()