aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/FindGIF.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/FindGIF.cmake b/modules/FindGIF.cmake
index c191d784..cf2324c0 100644
--- a/modules/FindGIF.cmake
+++ b/modules/FindGIF.cmake
@@ -25,6 +25,7 @@ FIND_LIBRARY(GIF_LIBRARIES NAMES ${POTENTIAL_GIF_LIBS}
)
if (GIF_INCLUDE_DIR AND GIF_LIBRARIES)
+ set(CMAKE_REQUIRED_INCLUDES "${GIF_INCLUDE_DIR}" "${CMAKE_REQUIRED_INCLUDES}")
CHECK_STRUCT_MEMBER(GifFileType UserData gif_lib.h GIF_FOUND)
endif (GIF_INCLUDE_DIR AND GIF_LIBRARIES)