[CMake] Finding zlib on OS X 10.9

Bogdan Cristea cristeab at gmail.com
Tue Jan 14 09:32:58 EST 2014


On 01/14/2014 03:18 PM, "Schröter, Philipp" wrote:
> When CMake is looking for zlib it always returns "ZLIB not found." although ZLIB_ROOT, in which it looks for zlib (/usr/local/zlib) and which is passed to CMake with a -D, is correct and zlib exists in there (including subfolders).
> Does anybody have hints to solve this problem?

Have you tried to look in CMakeError.log file ?
In my case I use just

find_package(ZLIB REQUIRED)

AFAIK libz is shipped by default in MacOS and it should be found in /usr/lib

regards
Bogdan


More information about the CMake mailing list