[source] map: Have cmake find libubus.h

LEDE Commits lede-commits at lists.infradead.org
Fri Dec 16 09:50:20 PST 2016

dedeckeh pushed a commit to source.git, branch master:

commit 44ac4adb34dc35d2f294ab3340e7d09edea0b076
Author: Florian Fainelli <f.fainelli at gmail.com>
AuthorDate: Tue Dec 13 14:55:38 2016 -0800

    map: Have cmake find libubus.h
    Update CMakeList.txt to look for libubus.h since we depend on it.
    Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>
 package/network/ipv6/map/src/CMakeLists.txt | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/network/ipv6/map/src/CMakeLists.txt b/package/network/ipv6/map/src/CMakeLists.txt
index 2cbeb2c..a839373 100644
--- a/package/network/ipv6/map/src/CMakeLists.txt
+++ b/package/network/ipv6/map/src/CMakeLists.txt
@@ -5,6 +5,9 @@ project(mapcalc C)
 set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -std=c99")
+FIND_PATH(ubus_include_dir libubus.h)
 add_definitions(-D_GNU_SOURCE -Wall -Wno-gnu -Wextra)
 add_executable(mapcalc mapcalc.c)

More information about the lede-commits mailing list