From 0fb43ccc2b01c1fae857f6d32abed14642d3f302 Mon Sep 17 00:00:00 2001 From: iTrooz Date: Tue, 19 Mar 2024 20:23:33 +0100 Subject: [PATCH] fix: Use `find_library()` instead of `find_file()` to find system yara library (#1581) Discord discussion: https://discord.com/channels/789833418631675954/789840633414025246/1213564050848485427 --- cmake/modules/FindYara.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/FindYara.cmake b/cmake/modules/FindYara.cmake index db2778610..d1ee95dcb 100644 --- a/cmake/modules/FindYara.cmake +++ b/cmake/modules/FindYara.cmake @@ -1,4 +1,4 @@ -find_file(libyara.a YARA_LIBRARIES) +find_library(YARA_LIBRARIES NAMES yara) find_file(yara.h YARA_INCLUDE_DIRS) mark_as_advanced(YARA_LIBRARIES YARA_INCLUDE_DIRS) \ No newline at end of file