aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/fritz-tools
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2017-04-18 17:13:47 -0700
committerFlorian Fainelli <f.fainelli@gmail.com>2017-05-11 13:42:39 -0700
commit83814856fe8efaeb8f88c14822c6dfacf23acb98 (patch)
treeec651875c29e6215cffe4bef110d320cc80cb76a /package/utils/fritz-tools
parent8adeb4e5d0a8c15e37625469bb602de5702f27d5 (diff)
downloadupstream-83814856fe8efaeb8f88c14822c6dfacf23acb98.tar.gz
upstream-83814856fe8efaeb8f88c14822c6dfacf23acb98.tar.bz2
upstream-83814856fe8efaeb8f88c14822c6dfacf23acb98.zip
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 <f.fainelli@gmail.com>
Diffstat (limited to 'package/utils/fritz-tools')
-rw-r--r--package/utils/fritz-tools/src/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/utils/fritz-tools/src/CMakeLists.txt b/package/utils/fritz-tools/src/CMakeLists.txt
index 116bca9dc0..021dc7733a 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)