2
# This file is included here because the standard FindGIF.cmake file
3
# requires the CHECK_STRUCT_MEMBER macro. It wasn't on my PC, at least, so
4
# I include a copy of the macro here for giflib to use.
6
MACRO (CHECK_STRUCT_MEMBER _STRUCT _MEMBER _HEADER _RESULT)
8
FOREACH (it ${_HEADER})
9
SET(_INCLUDE_FILES "${_INCLUDE_FILES}#include <${it}>\n")
12
SET(_CHECK_STRUCT_MEMBER_SOURCE_CODE "
22
CHECK_CXX_SOURCE_COMPILES("${_CHECK_STRUCT_MEMBER_SOURCE_CODE}" ${_RESULT})
24
ENDMACRO (CHECK_STRUCT_MEMBER)