Commit 69ef4897 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

cmake: Fix FindLua as pointed by courmisch.

parent eec10937
...@@ -12,7 +12,7 @@ if (NOT Lua_SEARCHED) ...@@ -12,7 +12,7 @@ if (NOT Lua_SEARCHED)
set(Lua_SEARCHED TRUE CACHE INTERNAL "") set(Lua_SEARCHED TRUE CACHE INTERNAL "")
set(Lua_FOUND FALSE CACHE INTERNAL "") set(Lua_FOUND FALSE CACHE INTERNAL "")
pkg_check_modules(Lua lua>=5.1) pkg_check_modules(Lua lua>=5.1 lua5.1)
if (NOT Lua_FOUND) if (NOT Lua_FOUND)
find_library( Lua_LIBRARY NAMES lua5.1 lua51 lua) 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