title: Can CMake specify the base SDK on Mac OS X?
body: <p>Does anyone know how to do specify the Mac OS X SDK to build against with CMake? I have searched for <code>cmake mac &quot;base sdk&quot;</code> but this turned up nothing.</p>
  <p>I am using CMake to generate Unix makefiles.</p>
  <h1>Update</h1>
  <p>On my 10.6 install, I see that <code>/Developer/SDKs</code> has the following:</p>
  <ul>
  <li>MacOSX10.4u.sdk</li>
  <li>MacOSX10.5.sdk</li>
  <li>MacOSX10.6.sdk</li>
  </ul>
  <p>Perhaps I can get CMake to pass one of these paths to the compiler somehow?</p>
  <p>Also, my 10.7 install only has:</p>
  <ul>
  <li>MacOSX10.6.sdk</li>
  <li>MacOSX10.7.sdk</li>
  </ul>
  <p>Does this mean that it can only build for these platforms?</p>
  <h2>Update 2</h2>
  <p>Damn, I just realised that actually I'm not using Xcode -- so this may affect some answers. Also, I am now trying with Mac OS X 10.8 developer preview (with some weird results, see my answer).</p>