[CMake] CHECK_FUNCTION_EXISTS(UuidCreate HAVE_UUIDCREATE)

Bill Hoffman bill.hoffman at kitware.com
Mon May 5 14:59:25 EDT 2008


Mathieu Malaterre wrote:

> 
> -> that's exactly what is driving me nuts, CheckFunctionExists.c is a
> 5 line c code, it forward declare the function but does not include
> *anything*.
That is what concerns me, it does not include anything.  It maybe 
required to include something to find the symbol...
> 
> And I can confirm that compilation by hand works:
> 
>  /usr/local/bin/gcc.exe  -DCHECK_FUNCTION_EXISTS=UuidCreate   -o foo.o
>   -c /usr/share/cmake-2.4.8/Modules/CheckFunctionExists.c
> 
> ...
> 
Use debug-trycompile.

Then cd into the directory and run make, what is different than what works?

-Bill



More information about the CMake mailing list