[CMake] Unknown CMake command "CHECK_STRUCT_HAS_MEMBER"

David Cole david.cole at kitware.com
Fri Jun 18 06:59:39 EDT 2010


On Fri, Jun 18, 2010 at 3:19 AM, Marcus Liebhardt <stuff at murcsack.de> wrote:

> > On Thursday 25 March 2010, Franklin Dorbon wrote:
> > >* Hello,
> *> >* I get the below error when running CMAKE, the GUI version 2.8 on windows:
> *> >*
> *> >* CMake Error at cmake/internal/SearchForStuff.cmake:78
> *> >* (CHECK_STRUCT_HAS_MEMBER): Unknown CMake command "CHECK_STRUCT_HAS_MEMBER".
> *> >* Call Stack (most recent call first):
> *> >* CMakeLists.txt:49 (INCLUDE)
> *> >*
> *> >* I don't understand why this command cannot be found, it seems that I
> *> >* have used CMAKE before and not had to do anything special to use this.
> *> >* Is this just error with my CMakeLists.txt?
> *>
> > Do you have a
> > include(CheckStructHasMember)
> > somewhere ? This is necessary, this file defines the macro.
> >
> > Alex
>
> I struggle with the same problem.
>
> When I'm trying to configure the source files from Player 3.1.0 on Windows Vista SP2 with CMake 2.8.1, I'm getting the same error as above.
> I'm not familiar with the whole 'make thing', but I searched for 'include(CheckStructHasMember)' and I found 'INCLUDE (CheckStructHasMember) CHECK_STRUCT_HAS_MEMBER ("struct timespec" tv_sec time.h HAVE_STRUCT_TIMESPEC) ELSE (CMAKE_MAJOR_VERSION EQUAL 2 AND CMAKE_MINOR_VERSION EQUAL 6)' in the file cmake/internal/SearchForStuff.cmake.
>
> I don't know, if this is any help.
>
> Does anybody have a suggestion how to proceed?
>
>
Where can I get the source code for Player 3.1.0...? Sounds like there must
be something that doesn't quite work on Windows in the source tree there...


thanks,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100618/fd1941d0/attachment-0001.htm>


More information about the CMake mailing list