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
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to