diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2017-04-18 17:13:47 -0700 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2017-05-11 13:42:39 -0700 |
commit | 83814856fe8efaeb8f88c14822c6dfacf23acb98 (patch) | |
tree | ec651875c29e6215cffe4bef110d320cc80cb76a /package/utils | |
parent | 8adeb4e5d0a8c15e37625469bb602de5702f27d5 (diff) | |
download | upstream-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')
-rw-r--r-- | package/utils/fritz-tools/src/CMakeLists.txt | 3 |
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) |