[cmake-developers] Issue on CMAKE_OSX_SYSROOT
Gregor Jasny
gjasny at googlemail.com
Sat Oct 10 08:34:23 EDT 2015
On 06/10/15 16:00, Brad King wrote:
> Okay, that looks like the underlying issue. The
> Modules/Platform/Darwin-Initialize.cmake module will have
> to be taught about this case to do the right thing by default
> if it does not already.
>
> Gregor, do you mind taking a look at this?
Sure. Ironically I just upgraded my workstation to 10.11 some minutes
before :(
What will be the desired behavior here?
At work we always use the lastest SDK (by omitting the versioned suffix)
and just set the deployment target. Works good since some years.
But I guess we want to be more conservative here and stick to old
behavior. How about adding a rule at the end that:
if (SDK is newer than host) && (is not set CMAKE_OSX_DEPLOYMENT_TARGET)
set CMAKE_OSX_DEPLOYMENT_TARGET=<host version>
endif()
Thanks,
Gregor
More information about the cmake-developers
mailing list