curl-library
Re: status of CMake support in 7.19.5
Date: Wed, 10 Jun 2009 09:39:28 +0300
On Tue, 09 Jun 2009 14:42:14 -0400
Bill Hoffman <bill.hoffman_at_kitware.com> wrote:
> Cosmin Luţă wrote:
>
> >>
> >> The autotools does this:
> >>
> >> arg1 in int SOCKET;
> >> arg2 in 'struct sockaddr' void;
> >> t in socklen_t int size_t 'unsigned int' long 'unsigned long'
> >> void; extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
> >>
> >> I guess I should do the same for CMake?
> >>
> >
> > I've see something similar in CMake/OtherTests.cmake for
> > determining the arg and ret types of send()/recv(); perhaps you
> > could do the same?
> >
> >
>
> Yes, I could. Seems a bit brute force. Is there no other way to
> find this? We are looking for $t but vary arg1 and arg2. Seems
> like there should be a better way to figure this out.
>
> -Bill
Bruteforcing seems the best way to me if you want to have the most
flexibility (i.e. deploy on any platform and have minimum
trouble)... I can't even think of another easy method of detecting this.
Besides, you said yourself that autotools do a similar thing, no?
Received on 2009-06-10