<div dir="ltr">Hi, all. I have a fresh install of OS X Mountain Lion. Xcode installed. CMake fails to locate zlib headers:<br><br><div>CMake Error at /Applications/CMake 2.8-10.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:97 (message):</div>
<div> Could NOT find ZLIB (missing: ZLIB_INCLUDE_DIR)</div><div>Call Stack (most recent call first):</div><div> /Applications/CMake 2.8-10.app/Contents/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:291 (_FPHSA_FAILURE_MESSAGE)</div>
<div> /Applications/CMake 2.8-10.app/Contents/share/cmake-2.8/Modules/FindZLIB.cmake:85 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)</div><div> CMakeLists.txt:42 (find_package)</div><div><br></div><div style>But they are located at:<br>
<br></div><div style>/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/include<br></div><div style><br></div><div style>Any way to tell cmake to look for headers\libraries inside Xcode bundle without hardcoding this path?</div>
<div style><br>Regards, Alexey</div></div>