Hi Francesco,

On 10/10/15 14:34, Gregor Jasny wrote:
> 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.

> if (SDK is newer than host) && (is not set CMAKE_OSX_DEPLOYMENT_TARGET)
>   set CMAKE_OSX_DEPLOYMENT_TARGET=<host version>
> endif()

Could you please give the following patch to Darwin-Initialize.cmake a try?

https://cmake.org/gitweb?p=stage/cmake.git;a=commit;h=d61c6689c7380c810e060fed6bf3a0b9fbfd41d0

Brad: If we would set in line 33 the CMAKE_OSX_DEPLOYMENT_TARGET cache
variable only if ENV{MACOSX_DEPLOYMENT_TARGET} actually exists we could
get rid of the FORCE attribute later. Would that make sense?

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