summaryrefslogtreecommitdiffstats
path: root/cmake/FindLiburing.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindLiburing.cmake')
-rw-r--r--cmake/FindLiburing.cmake10
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/FindLiburing.cmake b/cmake/FindLiburing.cmake
new file mode 100644
index 00000000000..593b525915f
--- /dev/null
+++ b/cmake/FindLiburing.cmake
@@ -0,0 +1,10 @@
+# Copyright (C) 2022 The Qt Company Ltd.
+# SPDX-License-Identifier: BSD-3-Clause
+
+find_package(PkgConfig QUIET)
+
+pkg_check_modules(Liburing IMPORTED_TARGET "liburing")
+
+if (NOT TARGET PkgConfig::Liburing)
+ set(Liburing_FOUND 0)
+endif()