blob: cd53fb42a37eca794d1c60af167b522faa1ae71c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
From 3d203dcfe6fef7c8ff5d0dbc030b7b7934406999 Mon Sep 17 00:00:00 2001
From: Carlo Landmeter <clandmeter@gmail.com>
Date: Mon, 8 Feb 2016 14:19:26 +0100
Subject: [PATCH] Fix detection of system Lua
---
CMakeLists.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index bbf2735..ff356c1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -10,10 +10,11 @@ IF(USE_BUILTIN_LUA)
DEFINITION LUA_LIBRARIES)
ELSE(USE_BUILTIN_LUA)
find_package(PkgConfig)
- pkg_check_modules(LUA lua>=5.2)
+ pkg_search_module(LUA lua5.2>=5.2 lua>=5.2)
IF(LUA_FOUND)
INCLUDE_DIRECTORIES(${LUA_INCLUDE_DIRS})
add_definitions(-DWITH_EXTERNAL_LUA)
+ link_directories(${LUA_LIBRARY_DIRS})
ELSE(LUA_FOUND)
MESSAGE(FATAL_ERROR "LUA not found but USE_BUILTIN_LUA=NO")
ENDIF(LUA_FOUND)
|