[cmake-developers] Change type of CMAKE_OSX_SYSROOT to STRING instead of PATH

Johan Björk phb at spotify.com
Fri May 27 05:54:40 EDT 2011


Hi guys,

Attached patch that changes the type of the CMAKE_OSX_SYSROOT
variable. All versions of XCode accept in addition to the full path to
the SDK, also a symbolic name, ie 'macosx10.5' or similar. To make
things worse, some versions of XCode 4 doesn't seem to like the full
paths at all.

Without this patch, it already works fine, until you try to use
TRY_COMPILE() or the like, where your symbolic name will be converted
to a full path.
'/Users/phb/DEV/.../build/CMakeFiles/CMakeTmp/CMakeFiles/CMakeTmp/macosx10.5'

Should be a trivial fix, there should be no reason where we want
automatic path expansion on that value.

Thanks
/Johan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Darwin-Change-type-of-CMAKE_OSX_SYSROOT-to-be-a-STRI.patch
Type: application/octet-stream
Size: 1114 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20110527/7b249530/attachment-0002.obj>


More information about the cmake-developers mailing list