Commit 5fad0735 authored by Xavier Claessens's avatar Xavier Claessens

Check for zlib header

parent 3b22a604
Pipeline #9487 passed with stages
in 2 minutes and 48 seconds
......@@ -307,7 +307,7 @@ endif
zlib_dep = dependency('zlib', required : false)
if not zlib_dep.found()
zlib_dep = cc.find_library('z', required : false)
if not zlib_dep.found()
if not zlib_dep.found() or not cc.has_header('zlib.h')
zlib_dep = subproject('zlib').get_variable('zlib_dep')
endif
endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment