From 45595157e8f0b655767fdccfc6a1c194897fe8b0 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Wed, 21 Jan 2015 00:06:26 +0100
Subject: Fix Lua detection
---
CMakeLists.txt | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 57d04ba..9cb75f8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -37,7 +37,9 @@ else (CURSES_FOUND)
endif (ncursesw_FOUND)
if (WITH_LUA)
- pkg_search_module (lua REQUIRED lua5.3 lua-5.3 lua=5.3)
+ # FIXME: for "lua" we also need to check that it is < 5.4
+ # which doesn't seem to be possible with FindPkgConfig
+ pkg_search_module (lua REQUIRED lua5.3 lua-5.3 lua>=5.3)
list (APPEND project_libraries ${lua_LIBRARIES})
include_directories (${lua_INCLUDE_DIRS})
endif (WITH_LUA)
--
cgit v1.2.3-70-g09d2