From 9c16e197865a7e2effe7902f4c4a16857b7fa878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Thu, 1 Oct 2015 22:58:18 +0200 Subject: [PATCH] Fix build without Lua --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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})