I use QtCreator and CMake for C ++ development on Mac, after upgrading to Xcode 7.0, CMake seems broken, after starting CMake I got this warning:
CMake warning in / usr / local / Cellar / cmake / HEAD / share / cmake / Modules / Platform / Darwin -Initialize.cmake: 128 (message): Ignoring CMAKE_OSX_SYSROOT value:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk
because the directory does not exist. Call Stack (last call first): / usr / local / Cellar / cmake / HEAD / share / cmake / Modules / CMakeSystemSpecificInitialize.cmake: 18 (including) CMakeLists.txt: 3 (project)
and build, I got this error:
*** There is no rule for creating a goal. /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/System/Library/Frameworks/Accelerate.framework '
I know that Xcode 7.0 removed MacOSX10.10.sdk and added MacOSX10.11.sdk, so I thought it might be my cmake too old, I upgraded mycmake to 3.3.2 using homebrew but still not working Does anyone know how to fix this? Thanks!
source
share