[CMake] find_library and mac os x SDKs
Clinton Stimpson
clinton at elemtech.com
Fri Mar 26 18:29:41 EDT 2010
On Friday 26 March 2010 04:20:41 pm David Cole wrote:
> On Fri, Mar 26, 2010 at 5:00 PM, Clinton Stimpson
<clinton at elemtech.com>wrote:
> > On Friday 26 March 2010 02:36:19 pm Sean McBride wrote:
> > > On Fri, 26 Mar 2010 14:38:54 -0400, Simmons, Aaron said:
> > > >While it will compile, the resulting binary needs to be compatible
> > > > with 10.4.
> > >
> > > It is a common misconception that one needs to use the 10.4 SDK to
> > > create an executable that is compatible with 10.4. This is not so.
> > >
> > > What you want to do is set CMAKE_OSX_DEPLOYMENT_TARGET to 10.4. Don't
> > > set CMAKE_OSX_SYSROOT at all. Also, if you're deploying to 10.4, I
> > > believe you need to use gcc 4.0, not newer. You'll also want to set
> > > CMAKE_OSX_ARCHITECTURES as desired.
> >
> > I have a question about this...
> > If the 10.5 SDK has python 2.3 and 2.5, and Mac 10.4 only have python
> > 2.3, how
> > does one use the 10.5 SDK but build against Python 2.3 within that SDK,
> > so the
> > binaries work on Mac 10.4?
>
> Is this one a serious question, or are you just trying to make us smile
> late on a Friday....? :-)
>
It was meant to be serious :)
I looked some more and...
The 10.5 SDK doesn't include headers for Python 2.3, so one has to use the
10.4 SDK for an application using python to work on Mac 10.4.
I guess another option is to copy the Python framework into the application
bundle, but I'd rather not.
Clint
More information about the CMake
mailing list