Skip to content

Commit

Permalink
cmake: Change library discovery order in LuaJIT find module
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
PatTheMav authored and RytoEX committed Sep 26, 2024
1 parent ace60a6 commit 51d66dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/finders/FindLuajit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 51d66dc

Please sign in to comment.