Hello list,

I'm still struggling finding liblua in the build system by CMake.

This is a simple executable project and I have this at the top of the
CMakeLists.txt file:

cmake_minimum_required (VERSION 3.0)

project(hmd C)

SET(CMAKE_INSTALL_PREFIX /)

IF(NOT LUA_CFLAGS)
        INCLUDE(FindPkgConfig)
        pkg_search_module(LUA lua5.1 lua-5.1)
        message("Lua found cflags: ${LUA_CFLAGS}")
ENDIF()

As the build system configures my project, the LUA_CFLAGS gets empty. I've
seen this snippet in libubox as suggested earlier. What I don't really
understand, how could this even work? If i grep for a file lua5.1.pc or
lua-5.1.pc, there is none. What is present is lua.pc.

The difference between libubox and my application is mine is just a simple
executable, libubox is a library.

What do I miss?


Thanks,
Levente

-- 
Levente Kovacs
Senior Electronic Engineer

W: http://levente.logonex.eu
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to