Commit 12f7359b authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont
Browse files

Really fix the lua check

parent 2aebc27e
......@@ -12,7 +12,10 @@ if (NOT Lua_SEARCHED)
set(Lua_SEARCHED TRUE CACHE INTERNAL "")
set(Lua_FOUND FALSE CACHE INTERNAL "")
pkg_check_modules(Lua lua>=5.1 lua5.1)
pkg_check_modules(Lua lua>=5.1)
if (NOT Lua_FOUND)
pkg_check_modules(Lua lua5.1)
endif (NOT Lua_FOUND)
if (NOT Lua_FOUND)
find_library( Lua_LIBRARY NAMES lua5.1 lua51 lua)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment