Commit f2fea395 authored by François Grisez's avatar François Grisez

Use the Zlib provided by MacOSX

parent d9aa9eab
...@@ -26,9 +26,13 @@ ...@@ -26,9 +26,13 @@
# ZLIB_INCLUDE_DIRS - the zlib include directory # ZLIB_INCLUDE_DIRS - the zlib include directory
# ZLIB_LIBRARIES - The libraries needed to use zlib # ZLIB_LIBRARIES - The libraries needed to use zlib
if(APPLE AND IOS)
set(_ZLIB_ROOT_PATHS "/usr/lib")
endif()
find_path(ZLIB_INCLUDE_DIRS find_path(ZLIB_INCLUDE_DIRS
NAMES zlib.h NAMES zlib.h
HINTS _ZLIB_ROOT_PATHS HINTS "${_ZLIB_ROOT_PATHS}"
PATH_SUFFIXES include PATH_SUFFIXES include
) )
...@@ -39,12 +43,12 @@ endif() ...@@ -39,12 +43,12 @@ endif()
if(ENABLE_STATIC) if(ENABLE_STATIC)
find_library(ZLIB_LIBRARIES find_library(ZLIB_LIBRARIES
NAMES zstatic zlibstatic zlibstaticd z NAMES zstatic zlibstatic zlibstaticd z
PATH_SUFFIXES bin lib HINTS "${_ZLIB_ROOT_PATHS}"
) )
else() else()
find_library(ZLIB_LIBRARIES find_library(ZLIB_LIBRARIES
NAMES z zlib zlibd NAMES z zlib zlibd
PATH_SUFFIXES bin lib HINTS "${_ZLIB_ROOT_PATHS}"
) )
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