cmake doesn't work with Mac OS X
Created by: wangkuiyi
After installing dependencies as described here, the running of cmake
prints the following erros:
yi@WangYis-iMac:~/work/paddle/build (fix_mac_build_doc)$ cmake .. -DWITH_GPU=OFF -DWITH_DOC=OFF
CMake Warning at /usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/Platform/Darwin-Initialize.cmake:97 (message):
CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' but the matching SDK does not exist
at:
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk"
Instead using SDK:
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk".
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/CMakeSystemSpecificInitialize.cmake:18 (include)
CMakeLists.txt:3 (project)
CMake Error at /usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/Platform/Darwin.cmake:76 (message):
CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' but CMAKE_OSX_SYSROOT:
""
is not set to a MacOSX SDK with a recognized version. Either set
CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to
empty.
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.4.3/share/cmake/Modules/CMakeSystemSpecificInformation.cmake:36 (include)
CMakeLists.txt:3 (project)
-- Configuring incomplete, errors occurred!
See also "/Users/yi/work/paddle/build/CMakeFiles/CMakeOutput.log".