[CMake] Unknown CMake command "CHECK_STRUCT_HAS_MEMBER"

Marcus Liebhardt stuff at murcsack.de
Fri Jun 18 03:19:37 EDT 2010


> 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?


Marcus Liebhardt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100618/92207134/attachment.htm>


More information about the CMake mailing list