From: Florian Fainelli Date: Fri, 1 Jul 2016 23:05:23 +0000 (-0700) Subject: cmake: Find uci header file X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=81c38e8cc3913afcdf5c6916db0376000086b57f;p=oweals%2Fubox.git cmake: Find uci header file Add a CMake FIND_PATH and INCLUDE_DIRECTORIES searching for uci.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 73e8753..6cf0c93 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,6 +40,9 @@ INSTALL(TARGETS validate LIBRARY DESTINATION lib ) +FIND_PATH(uci_include_dir uci.h) +INCLUDE_DIRECTORIES(${uci_include_dir}) + ADD_EXECUTABLE(validate_data validate/cli.c) TARGET_LINK_LIBRARIES(validate_data ubox uci validate) INSTALL(TARGETS validate_data