[source] fritz-tools: Find zlib.h header file
LEDE Commits
lede-commits at lists.infradead.org
Thu May 11 13:47:56 PDT 2017
florian pushed a commit to source.git, branch master:
https://git.lede-project.org/83814856fe8efaeb8f88c14822c6dfacf23acb98
commit 83814856fe8efaeb8f88c14822c6dfacf23acb98
Author: Florian Fainelli <f.fainelli at gmail.com>
AuthorDate: Tue Apr 18 17:13:47 2017 -0700
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 at gmail.com>
---
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 116bca9..021dc77 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)
More information about the lede-commits
mailing list