ohybridproxy: Properly search for libubox/utils.h
[feed/routing.git] / ohybridproxy / patches / 0001-find-libubox.patch
1 From c015e7e62ed4c7645595f7f83cf156810433d0cd Mon Sep 17 00:00:00 2001
2 From: Florian Fainelli <f.fainelli@gmail.com>
3 Date: Mon, 5 Jun 2017 17:56:33 -0700
4 Subject: [PATCH] Cmake: Search and find libubox/utils.h
5
6 ---
7 CMakeLists.txt | 3 +++
8 1 file changed, 3 insertions(+)
9
10 diff --git a/CMakeLists.txt b/CMakeLists.txt
11 index 2556669d2a52..1c970d92ff56 100644
12 --- a/CMakeLists.txt
13 +++ b/CMakeLists.txt
14 @@ -16,6 +16,9 @@ else(${APPLE})
15 set(dns_sd "dns_sd")
16 endif(${APPLE})
17
18 +FIND_PATH(ubox_include_dir libubox/utils.h)
19 +INCLUDE_DIRECTORIES(${ubox_include_dir})
20 +
21 set(CORE src/cache.c src/io.c src/socket.c)
22
23 add_executable(ohybridproxy src/ohybridproxy.c src/dns2mdns.c ${CORE})
24 --
25 2.9.3
26