<html><body style="font-family: Helvetica,Arial,sans-serif; font-size: 12px;"><div>When setting CMAKE_OSX_SYSROOT to the unversioned directory name (using Xcode 8, as it happens) and setting CMAKE_OSX_DEPLOYMENT_TARGET, I get this error:</div><div><br></div><br>-- The CXX compiler identification is AppleClang 8.0.0.8000038<br>
CMake Error at /Applications/CMake.app/Contents/share/cmake-3.6/Modules/Platform/Darwin.cmake:76 (message):<br>
  CMAKE_OSX_DEPLOYMENT_TARGET is '10.10' but CMAKE_OSX_SYSROOT:<br><br>
   "/Applications/Xcode-8.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"<br><br>
  is not set to a MacOSX SDK with a recognized version.  Either set<br>
  CMAKE_OSX_SYSROOT to a valid SDK or set CMAKE_OSX_DEPLOYMENT_TARGET to<br>
  empty.<br>
Call Stack (most recent call first):<br>
  /Applications/CMake.app/Contents/share/cmake-3.6/Modules/CMakeSystemSpecificInformation.cmake:36 (include)<br>
  CMakeLists.txt:37 (project)<br><div><br></div><div><br></div><div>I'm able to suppress the error by using the versioned (symlink) directory; but isn't the premise of this error message invalid? As I understand it, since Xcode 7 (or perhaps earlier?), there is no requirement that the deployment target match the SDK version.</div><div><br></div><div>Braden</div><div><br></div></body></html>