From 83814856fe8efaeb8f88c14822c6dfacf23acb98 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Tue, 18 Apr 2017 17:13:47 -0700 Subject: [PATCH] fritz-tools: Find zlib.h header file Add the necessary changes to CMakeLists.txt to search zlib.h. Fixes build issues with external toolchains that don't have STAGING_DIR in the default search path. Signed-off-by: Florian Fainelli --- package/utils/fritz-tools/src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/utils/fritz-tools/src/CMakeLists.txt b/package/utils/fritz-tools/src/CMakeLists.txt index 116bca9dc04e..021dc7733a36 100644 --- a/package/utils/fritz-tools/src/CMakeLists.txt +++ b/package/utils/fritz-tools/src/CMakeLists.txt @@ -5,6 +5,9 @@ ADD_DEFINITIONS(-Wall -Werror --std=gnu99 -Wmissing-declarations) SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") +FIND_PATH(zlib_include_dir zlib.h) +INCLUDE_DIRECTORIES(${zlib_include_dir}) + ADD_EXECUTABLE(fritz_tffs_read fritz_tffs_read.c) ADD_EXECUTABLE(fritz_cal_extract fritz_cal_extract.c) TARGET_LINK_LIBRARIES(fritz_cal_extract z) -- 2.30.2