On Thursday 24 July 2008 11:59:43 Ben Taylor wrote: > On Sun, Jul 20, 2008 at 8:16 AM, Lukas Oboril <oboril.lukas at gmail.com> wrote: > > Hi, > > > > the problem is detection of nanosleep in cmake process. > > > > HAVE_NANOSLEEP is not setup and there is no prototype for > > strigi_nanosleep.
OK, that test has disabled quite some time ago; are you still hitting this problem with current SVN trunk (support is always a trunk thing) and the patches in Build? > as a test, i changed my settings to a non-destructive build, and added > set(CMAKE_REQUIRED_LIBRARIES -lrt) > > above the the HAVE_NANOSLEEP test > and reset it just after That's a good approach, since we know that the library is needed *anyway*. > Probably needs to be conditional, but I haven't figured out how to do that > yet. IF (CMAKE_BUILD_SYSTEM MATCHES "SunOS") .. ENDIF(...) See my blog entries on CMake for details.
