aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-10-01 22:58:18 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-10-01 22:58:18 +0200
commit9c16e197865a7e2effe7902f4c4a16857b7fa878 (patch)
treea01e3e6ed5e307a135fb9ebd0ed5e9558c458806
parentd9d9e1f49867f06755943a21a35d979bea438287 (diff)
downloadponymap-9c16e197865a7e2effe7902f4c4a16857b7fa878.tar.gz
ponymap-9c16e197865a7e2effe7902f4c4a16857b7fa878.tar.xz
ponymap-9c16e197865a7e2effe7902f4c4a16857b7fa878.zip
Fix build without Lua
-rw-r--r--CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 74b0d74..b128e9c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,10 +42,14 @@ endif (ncursesw_FOUND)
# 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)
+pkg_search_module (lua lua5.3 lua-5.3 lua>=5.3)
option (WITH_LUA "Enable experimental support for Lua 5.3 plugins" ${lua_FOUND})
if (WITH_LUA)
+ if (NOT lua_FOUND)
+ message (FATAL_ERROR "Lua library not found")
+ endif (NOT lua_FOUND)
+
list (APPEND project_libraries ${lua_LIBRARIES})
include_directories (${lua_INCLUDE_DIRS})
link_directories (${lua_LIBRARY_DIRS})