aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-18 15:42:32 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-05-18 15:42:32 +0100
commit634d1be94f92de0b0ceed06042328bd57f3bf8d0 (patch)
tree4fc1de03fdab10e27741268dfe29d6d1934bf036 /CMakeLists.txt
parent4cbb5e934a3383161f303a7eaa07d91a041fc7a4 (diff)
downloadrspamd-634d1be94f92de0b0ceed06042328bd57f3bf8d0.tar.gz
rspamd-634d1be94f92de0b0ceed06042328bd57f3bf8d0.zip
[Minor] Fix luajit search
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2d7e21ff8..388e9914f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -122,11 +122,14 @@ INCLUDE(OSDep)
LIST(APPEND RSPAMD_REQUIRED_LIBRARIES "m")
IF(ENABLE_LUAJIT MATCHES "ON")
ProcessPackage(LIBLUAJIT LIBRARY "luajit"
+ "luajit-2.1"
+ "luajit2.1"
"luajit-2.0"
"luajit2.0"
+ "luajit-5.1"
INCLUDE luajit.h INCLUDE_SUFFIXES
- "include/luajit-2.0"
"include/luajit-2.1"
+ "include/luajit-2.0"
"include/luajit"
ROOT ${LUA_ROOT}
MODULES luajit)
@@ -144,7 +147,7 @@ ELSE(ENABLE_LUAJIT MATCHES "ON")
MODULES lua53
OPTIONAL)
- IF (NOT LIBLUA_FOUND)
+ IF (NOT WITH_LIBLUA)
ProcessPackage(LIBLUA LIBRARY "lua"
"lua-5.2"
INCLUDE lua.h INCLUDE_SUFFIXES
@@ -156,7 +159,7 @@ ELSE(ENABLE_LUAJIT MATCHES "ON")
MODULES lua52
OPTIONAL)
- IF (NOT LIBLUA_FOUND)
+ IF (NOT WITH_LIBLUA)
ProcessPackage(LIBLUA LIBRARY "lua"
"lua-5.1"
INCLUDE lua.h INCLUDE_SUFFIXES