Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.openwrt.org/project/libubox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
authorKarl Palsson <karlp@remake.is>2015-09-24 18:14:04 +0300
committerFelix Fietkau <nbd@openwrt.org>2015-11-22 15:17:07 +0300
commit682e071ef71f52125793aabb9e060343ea481443 (patch)
tree64b65d1787b547793f0b147c04efd315f8e53362 /lua
parent10429bccd0dc5d204635e110a7a8fae7b80d16cb (diff)
libubox: lua: use pkg-config built in module to search for alternatives
Different distributions have different names for the lua 5.1 package. Use cmake's built in pkg-config support to search for the first one, rather than running it explicitly and searching for a single version. Signed-off-by: Karl Palsson <karlp@remake.is>
Diffstat (limited to 'lua')
-rw-r--r--lua/CMakeLists.txt9
1 files changed, 1 insertions, 8 deletions
diff --git a/lua/CMakeLists.txt b/lua/CMakeLists.txt
index 10c6dc1..34c9ab1 100644
--- a/lua/CMakeLists.txt
+++ b/lua/CMakeLists.txt
@@ -5,14 +5,7 @@ PROJECT(uloop C)
SET(CMAKE_INSTALL_PREFIX /)
IF(NOT LUA_CFLAGS)
- FIND_PROGRAM(PKG_CONFIG pkg-config)
- IF(PKG_CONFIG)
- EXECUTE_PROCESS(
- COMMAND pkg-config --silence-errors --cflags lua5.1
- OUTPUT_VARIABLE LUA_CFLAGS
- OUTPUT_STRIP_TRAILING_WHITESPACE
- )
- ENDIF()
+ pkg_search_module(LUA lua5.1 lua-5.1)
ENDIF()
ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -I.. ${LUA_CFLAGS})