]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Check for Lua 5.4
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 26 Feb 2021 13:40:22 +0000 (13:40 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 26 Feb 2021 13:40:22 +0000 (13:40 +0000)
Issue: #3656

CMakeLists.txt

index a218e28fdb2d5d611aa5dc712cb437c4b9244158..4b4538dd3275c791e4a5194492738d9935bac915 100644 (file)
@@ -157,27 +157,40 @@ ELSE(ENABLE_LUAJIT MATCHES "ON")
 
        IF (NOT WITH_LIBLUA)
                ProcessPackage(LIBLUA LIBRARY   "lua"
-                               "lua-5.2"
-                               LIB_SUFFIXES    "lua5.2"
+                               "lua-5.4"
+                               LIB_SUFFIXES    "lua5.4"
                                INCLUDE lua.h INCLUDE_SUFFIXES
-                               "include/lua-5.2"
-                               "include/lua5.2"
-                               "include/lua52"
+                               "include/lua-5.4"
+                               "include/lua5.4"
+                               "include/lua54"
                                "include/lua"
                                ROOT ${LUA_ROOT}
-                               MODULES lua52
+                               MODULES lua54
                                OPTIONAL)
-
                IF (NOT WITH_LIBLUA)
                        ProcessPackage(LIBLUA LIBRARY   "lua"
-                                       "lua-5.1"
+                                       "lua-5.2"
+                                       LIB_SUFFIXES    "lua5.2"
                                        INCLUDE lua.h INCLUDE_SUFFIXES
-                                       "include/lua-5.1"
-                                       "include/lua5.1"
-                                       "include/lua51"
+                                       "include/lua-5.2"
+                                       "include/lua5.2"
+                                       "include/lua52"
                                        "include/lua"
                                        ROOT ${LUA_ROOT}
-                                       MODULES lua51)
+                                       MODULES lua52
+                                       OPTIONAL)
+
+                       IF (NOT WITH_LIBLUA)
+                               ProcessPackage(LIBLUA LIBRARY   "lua"
+                                               "lua-5.1"
+                                               INCLUDE lua.h INCLUDE_SUFFIXES
+                                               "include/lua-5.1"
+                                               "include/lua5.1"
+                                               "include/lua51"
+                                               "include/lua"
+                                               ROOT ${LUA_ROOT}
+                                               MODULES lua51)
+                       ENDIF()
                ENDIF()
        ENDIF()
 ENDIF(ENABLE_LUAJIT MATCHES "ON")