[CMake] CMAKE_OSX_DEPLOYMENT_TARGET change in CMAKE

Mike Jackson mike.jackson at bluequartz.net
Tue Sep 23 08:03:50 EDT 2008


Bug number 6195 has been submitted for this. <
http://public.kitware.com/Bug/view.php?id=6195>  I have most of the work
completed but still needs some testing and some tweaking. You can pull the
patches and apply them to your copy of CMake and rebuild if you want.
Mike Jackson

On Tue, Sep 23, 2008 at 4:09 AM, Joachim de Vries <jvr at ashampoo.com> wrote:

> CMake version 2.7-20080708
>
> Mac OSX 10.5
> XCode 3.0
>
>
> I had to get the MACOSX_DEPLOYMENT_TARGET set correctly in the generated
> XCode projects. I tried a lot but
> could'nt find a solution so I had a look at the source and could'nt find
> anything about CMAKE_OSX_DELPOYMENT_TARGET. It seemed to me like a not used
> settings. So I made a change:
>
> in cmGlobalXCodeGenerator.cxx at:
>
> line 2467:
> const char* deploymentTarget =
>   this->CurrentMakefile->GetDefinition("CMAKE_OSX_DEPLOYMENT_TARGET");
> if(osxArch && sysroot && deploymentTarget)
>      line 2517:
> if (deploymentTarget)
>       {
>           buildSettings->AddAttribute("MAC_OSX_DEPLOYMENT_TARGET",
>                                 this->CreateString(deploymentTarget));
>         }
>
>
> Is this ok or do you think it maybe could cause a problem?
>
> Can you change this in one of your next cmake versions?
>
> Regards
> Joachim de Vries
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080923/2977aaf2/attachment.htm>


More information about the CMake mailing list