From: Florian Fainelli Date: Fri, 1 Jul 2016 23:03:47 +0000 (-0700) Subject: cmake: Find libubox/ustream-ssl.h header file X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=007a17f894dd5985165395a6fe7348256cb60a8b;p=oweals%2Fuclient.git cmake: Find libubox/ustream-ssl.h header file Add a CMake FIND_PATH and INCLUDE_DIRECTORIES searching for libubox/ustream-ssl.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 1f5efce..d9c03db 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,6 +12,9 @@ IF(APPLE) LINK_DIRECTORIES(/opt/local/lib) ENDIF() +FIND_PATH(ubox_include_dir libubox/ustream-ssl.h) +INCLUDE_DIRECTORIES(${ubox_include_dir}) + ADD_LIBRARY(uclient SHARED uclient.c uclient-http.c uclient-utils.c) TARGET_LINK_LIBRARIES(uclient ubox dl)