For use by multiple projects, rocksdb in particular.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
CMAKE_DEPENDENT_OPTION(WITH_SYSTEM_LIBURING "Require and build with system liburing" OFF
"HAVE_LIBAIO;WITH_BLUESTORE" OFF)
+if(WITH_LIBURING)
+ if(WITH_SYSTEM_LIBURING)
+ find_package(uring REQUIRED)
+ else()
+ include(Builduring)
+ build_uring()
+ endif()
+endif()
+
CMAKE_DEPENDENT_OPTION(WITH_BLUESTORE_PMEM "Enable PMDK libraries" OFF
"WITH_BLUESTORE" OFF)
if(WITH_BLUESTORE_PMEM)
endif()
if(WITH_LIBURING)
- if(WITH_SYSTEM_LIBURING)
- find_package(uring REQUIRED)
- else()
- include(Builduring)
- build_uring()
- endif()
target_link_libraries(blk PRIVATE uring::uring)
endif()