From: Florian Fainelli Date: Mon, 11 Jul 2016 21:01:15 +0000 (-0700) Subject: cmake: Find libubox/usock.h X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=59e0c739634f46a164d939e54416287b91ff8a9b;p=project%2Fuhttpd.git cmake: Find libubox/usock.h Add a CMake FIND_PATH and INCLUDE_DIRECTORIES searching for libubox/usock.h. Some external toolchains which do not include standard locations would fail to find the header otherwise. Signed-off-by: Florian Fainelli --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 8514351..7ae8ba4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,6 +21,9 @@ IF(LIBS STREQUAL "LIBS-NOTFOUND") SET(LIBS "") ENDIF() +FIND_PATH(ubox_include_dir libubox/usock.h) +INCLUDE_DIRECTORIES(${ubox_include_dir}) + SET(SOURCES main.c listen.c client.c utils.c file.c auth.c cgi.c relay.c proc.c plugin.c handler.c) IF(TLS_SUPPORT) SET(SOURCES ${SOURCES} tls.c)