cmake_modules/FindLua.cmake
changeset 10230 361d36ec5181
parent 9215 ec72ef9186f5
child 10232 93afc42147c8
--- a/cmake_modules/FindLua.cmake	Fri Apr 25 23:17:49 2014 +0400
+++ b/cmake_modules/FindLua.cmake	Mon Apr 28 16:52:00 2014 +0200
@@ -17,10 +17,9 @@
 
 find_path(LUA_INCLUDE_DIR lua.h
                           PATHS /usr/include /usr/local/include /usr/pkg/include
-                          PATH_SUFFIXES lua5.1 lua51)
-find_library(LUA_LIBRARY NAMES lua51 lua5.1 lua-5.1 lua
+                          PATH_SUFFIXES lua5.2 lua52 lua5.1 lua51)
+find_library(LUA_LIBRARY NAMES lua52 lua5.2 lua-5.2 lua51 lua5.1 lua-5.1 lua
                          PATHS /lib /usr/lib /usr/local/lib /usr/pkg/lib)
 
 find_package_handle_standard_args(Lua DEFAULT_MSG LUA_LIBRARY LUA_INCLUDE_DIR)
 mark_as_advanced(LUA_INCLUDE_DIR LUA_LIBRARY)
-