1From 23432b7958ecea64b49ba680767ea5dc696768c9 Mon Sep 17 00:00:00 2001
2From: Benjamin Lee <benjamin@computer.surgery>
3Date: Sun, 26 May 2024 17:17:01 -0700
4Subject: [PATCH] fix findliburing
5
6`find_package(... NAMES lib*)` is basically always wrong. The previous
7code was just hardcoding the static library path to work around the fact
8that this doesn't work. This breaks the build when only dynamic liburing
9builds are available.
10---
11 cmake/modules/Finduring.cmake | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/cmake/modules/Finduring.cmake b/cmake/modules/Finduring.cmake
15index 8cb14cb27..87f2df474 100644
16--- a/cmake/modules/Finduring.cmake
17+++ b/cmake/modules/Finduring.cmake
18@@ -7,7 +7,7 @@
19 find_path(uring_INCLUDE_DIR
20 NAMES liburing.h)
21 find_library(uring_LIBRARIES
22- NAMES liburing.a liburing)
23+ NAMES uring)
24
25 include(FindPackageHandleStandardArgs)
26 find_package_handle_standard_args(uring
27--
282.44.0
29