Re: [CMake] check function signature

2012-09-25 Thread Leif Walsh
this works perfectly, thanks On 25 Sep, 2012, at 9:45 AM, Nils Gladitz wrote: > Maybe you want "check_prototype_definition"? > > Nils > > On 09/25/2012 03:18 PM, Leif Walsh wrote: >> I use check_function_exists() to do some platform checking. On Linux, >> pthread_yield() returns int, and on

Re: [CMake] check function signature

2012-09-25 Thread Nils Gladitz
Maybe you want "check_prototype_definition"? Nils On 09/25/2012 03:18 PM, Leif Walsh wrote: I use check_function_exists() to do some platform checking. On Linux, pthread_yield() returns int, and on FreeBSD, it returns void. Is there a cmake way to distinguish between the two? check_functio

Re: [CMake] check function signature

2012-09-25 Thread Bogdan Cristea
On Tuesday 25 September 2012 09:18:38 Leif Walsh wrote: > I use check_function_exists() to do some platform checking. On Linux, > pthread_yield() returns int, and on FreeBSD, it returns void. Is there a > cmake way to distinguish between the two? check_function_exists seems to > not use strict e

[CMake] check function signature

2012-09-25 Thread Leif Walsh
I use check_function_exists() to do some platform checking. On Linux, pthread_yield() returns int, and on FreeBSD, it returns void. Is there a cmake way to distinguish between the two? check_function_exists seems to not use strict enough warnings to make sure the symbol has the right signatur