fix: Use `find_library()` instead of `find_file()` to find system yara library (#1581)

Discord discussion:
https://discord.com/channels/789833418631675954/789840633414025246/1213564050848485427
This commit is contained in:
iTrooz 2024-03-19 20:23:33 +01:00 committed by GitHub
parent 48db4df028
commit 0fb43ccc2b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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)