From 51d66dcedf12f5e62ce8436744e7254ef93055de Mon Sep 17 00:00:00 2001 From: PatTheMav Date: Thu, 19 Sep 2024 13:52:19 +0200 Subject: [PATCH] cmake: Change library discovery order in LuaJIT find module To ensure that the find module prefers the variant of LuaJIT shipped as part of obs-deps, it's necessary to give the name as shipped in obs-deps the highest precedence. This ensures that the "find_library" call will discover the less version-specific variant of the library possibly installed via Homebrew. --- cmake/finders/FindLuajit.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/finders/FindLuajit.cmake b/cmake/finders/FindLuajit.cmake index 8d4522a3c35a9b..935ee6287e0827 100644 --- a/cmake/finders/FindLuajit.cmake +++ b/cmake/finders/FindLuajit.cmake @@ -94,7 +94,7 @@ endif() find_library( Luajit_LIBRARY - NAMES luajit luajit-51 luajit-5.1 lua51 + NAMES luajit-5.1 luajit-51 luajit lua51 HINTS ${PC_Luajit_LIBRARY_DIRS} PATHS /usr/lib /usr/local/lib DOC "Luajit location"