cmake: Fix FindLua as pointed by courmisch.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 7 Feb 2008 17:43:17 +0000 (17:43 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Thu, 7 Feb 2008 17:43:17 +0000 (17:43 +0000)
extras/buildsystem/cmake/include/FindLua.cmake

index 66ad660..01d07bf 100644 (file)
@@ -12,7 +12,7 @@ if (NOT Lua_SEARCHED)
     set(Lua_SEARCHED TRUE 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)
         find_library( Lua_LIBRARY NAMES lua5.1 lua51 lua)