aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/ipv6
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2016-12-13 14:55:38 -0800
committerHans Dedecker <dedeckeh@gmail.com>2016-12-16 18:46:27 +0100
commit44ac4adb34dc35d2f294ab3340e7d09edea0b076 (patch)
tree5c1dc00c33ac48b099f154b7e5735b36422ca515 /package/network/ipv6
parent6a5cc2d08593ba63dddaa452e69b14c3edb08254 (diff)
downloadupstream-44ac4adb34dc35d2f294ab3340e7d09edea0b076.tar.gz
upstream-44ac4adb34dc35d2f294ab3340e7d09edea0b076.tar.bz2
upstream-44ac4adb34dc35d2f294ab3340e7d09edea0b076.zip
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@gmail.com>
Diffstat (limited to 'package/network/ipv6')
-rw-r--r--package/network/ipv6/map/src/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/network/ipv6/map/src/CMakeLists.txt b/package/network/ipv6/map/src/CMakeLists.txt
index 2cbeb2c261..a839373022 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_SHARED_LIBRARY_LINK_C_FLAGS "")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -std=c99")
+FIND_PATH(ubus_include_dir libubus.h)
+INCLUDE_DIRECTORIES(${ubus_include_dir})
+
add_definitions(-D_GNU_SOURCE -Wall -Wno-gnu -Wextra)
add_executable(mapcalc mapcalc.c)