[cmake-developers] CMAKE_SYSROOT vs CMAKE_OSX_SYSROOT

clinton at elemtech.com clinton at elemtech.com
Thu Jul 11 10:41:08 EDT 2013


----- Original Message -----
> On 7/3/2013 11:43 AM, Stephen Kelly wrote:
> >  To choose an SDK, you use the -isysroot option with the compiler and the -
> > syslibroot option with the linker.
> [snip]
> >  Modules/Platform/Darwin-Clang.cmake:  set(CMAKE_${lang}_SYSROOT_FLAG
> >  "-isysroot")
> [snip]
> > I'm not familiar enough with OSX to know if the pre-existing OSX related
> > sysroot features have any bearing on the new CMAKE_SYSROOT feature. Is it
> > something to be concerned about? Should the features be unified? Should the
> > new CMAKE_SYSROOT related variables be renamed to clarify difference?
> 
> Clinton, can you comment on this?
> 
> They do appear to be very similar.  Both are about the toolchain's
> system headers/libs and platform SDK location.
> 

I don't really know much more than that.
They also appear similar to me, so I would start with the assumption that they should be unified.

Clint



More information about the cmake-developers mailing list