]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: drop WITH_SYSTEM_FIO option
authorKefu Chai <kchai@redhat.com>
Mon, 9 Nov 2020 07:36:47 +0000 (15:36 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 9 Nov 2020 08:01:59 +0000 (16:01 +0800)
there is no well-known distro packaging fio.h, so drop this option.

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt
cmake/modules/Findfio.cmake [deleted file]
src/test/CMakeLists.txt

index 47ad8460f557e29a79ccea77ff35195496e277e4..9ae3dac66c612c2dc9d4fcca0f67d954b7f69973 100644 (file)
@@ -506,10 +506,7 @@ set(CEPH_TEST_TIMEOUT 3600 CACHE STRING
 
 # 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)
diff --git a/cmake/modules/Findfio.cmake b/cmake/modules/Findfio.cmake
deleted file mode 100644 (file)
index ec91ca5..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-# - 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)
index 6ab0f0c8b414cf632c202af1738b1fcdcdb6c34a..0e0dab52704c92fc916806cf71da0ff2403ab142 100644 (file)
@@ -75,7 +75,7 @@ if(WITH_SEASTAR)
   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)
@@ -504,7 +504,7 @@ if(WITH_RADOSGW)
   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()