[LEDE-DEV] [PATCH odhcpd] cmake: Find libubox/uloop.h
Florian Fainelli
f.fainelli at gmail.com
Wed Nov 30 17:35:36 PST 2016
On 07/01/2016 05:05 PM, Florian Fainelli wrote:
> Add a CMake FIND_PATH and INCLUDE_DIRECTORIES searching for
> libubox/uloop.h. Some external toolchains which do not include standard
> locations would fail to find the header otherwise.
>
> Signed-off-by: Florian Fainelli <f.fainelli at gmail.com>
I see this was marked as Accepted in lede, but it does not seem to have
been pushed to odhcpd.git, can someone do that?
Thanks!
> ---
> CMakeLists.txt | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/CMakeLists.txt b/CMakeLists.txt
> index fa6e054353ea..d0e18431408b 100644
> --- a/CMakeLists.txt
> +++ b/CMakeLists.txt
> @@ -3,6 +3,9 @@ cmake_minimum_required(VERSION 2.6)
> PROJECT(odhcpd C)
> ADD_DEFINITIONS(-Os -ggdb -Wall -Werror --std=gnu99 -Wmissing-declarations)
>
> +FIND_PATH(ubox_include_dir libubox/uloop.h)
> +INCLUDE_DIRECTORIES(${ubox_include_dir})
> +
> SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
>
> SET(SOURCES dhcp.c dhcp-common.c lease.c netlink.c odhcpd.c owrt.c rfc2131.c util.c)
>
--
Florian
More information about the Lede-dev
mailing list