Cannot detect Xcode SDK version from unversioned SDK path
Staring with Xcode 8 the SDK path might be unversioned, too. The following should work properly:
cmake -DCMAKE_OSX_SYSROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.10 -GXcode ..
See discussion in: http://public.kitware.com/pipermail/cmake/2016-September/064263.html