[CMake] CMake and OS X compiler tools without SDK

Michael Jackson mike.jackson at bluequartz.net
Thu Sep 20 16:41:20 EDT 2012


On Sep 20, 2012, at 4:26 PM, David Gobbi wrote:

> Hi All,
> 
> Just yesterday, Apple released new "Command Line Tools for XCode 4.5".
> Unlike their previous command-line compiler tools, these new tools no
> longer require XCode.  They are stand-alone.  This is great, because
> the package is just 110MB (compared to 1560MB for XCode).
> 
> However, there is a caveat.  CMake is looking for (and not finding) an
> XCode SDK.
> 
> When I configure VTK, for example, cmake sets this:
> 
> CMAKE_OSX_SYSROOT:PATH=/Developer/SDKs/MacOSX10.7.sdk
> 
> But in order for my compile to succeed, I have to change it to this:
> 
> CMAKE_OSX_SYSROOT:PATH=/
> 
> So I'm wondering if CMake should start using "/" as the default
> setting, or perhaps not use -isysroot at all unless an SDK has been
> explicitly selected.
> 
> - David
> --


CMake should probably actually look to verify that path does exist, then fallback to something else most likely dependent on the version of OS X being used? This could get ugly quickly.

___________________________________________________________
Mike Jackson                    Principal Software Engineer
BlueQuartz Software                            Dayton, Ohio
mike.jackson at bluequartz.net              www.bluequartz.net



More information about the CMake mailing list