[CMake] CHECK_FUNCTION_EXISTS
Mathieu Malaterre
mathieu.malaterre at gmail.com
Wed Apr 16 09:03:55 EDT 2008
On Tue, Apr 15, 2008 at 10:35 PM, George Neill <georgen at neillnet.com> wrote:
> 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?
did you delete the cmake cache ?
--
Mathieu
More information about the CMake
mailing list