[CMake] CHECK_FUNCTION_EXISTS

George Neill georgen at neillnet.com
Tue Apr 15 16:35:22 EDT 2008


David,

>  > Try setting CMAKE_REQUIRED_LIBRARIES to kernel32 (or maybe kernel32.lib?)
>  > before checking for Sleep.
>  >
>  > SET(CMAKE_REQUIRED_LIBRARIES "kernel32")
>  >
>  >  CHECK_FUNCTION_EXISTS(Sleep HAVE_SLEEP)
>  >
>  > Does that work?
>
>  No, it sure doesn't.

Just wondering if I am using this wrong or if it is a bug?

Thanks,
George.


More information about the CMake mailing list