Fixed gif plugin entry so that it uses GIFLIB_ rather than GIF to match it up
to the CMakeModels/FindGIFLIB.cmake entry
This commit is contained in:
parent
52371293b0
commit
386f3a091e
@ -46,9 +46,9 @@ IF (BUILD_OSG_IMAGE_PLUGINS)
|
||||
IF(JPEG_FOUND)
|
||||
SUBDIRS( jpeg )
|
||||
ENDIF(JPEG_FOUND)
|
||||
IF(GIF_FOUND)
|
||||
IF(GIFLIB_FOUND)
|
||||
SUBDIRS( gif )
|
||||
ENDIF(GIF_FOUND)
|
||||
ENDIF(GIFLIB_FOUND)
|
||||
IF(PNG_FOUND)
|
||||
SUBDIRS( png )
|
||||
ENDIF(PNG_FOUND)
|
||||
|
@ -1,8 +1,7 @@
|
||||
|
||||
INCLUDE_DIRECTORIES( ${GIF_INCLUDE_DIR} )
|
||||
LINK_DIRECTORIES( ${GIF_DIR}/lib )
|
||||
INCLUDE_DIRECTORIES( ${GIFLIB_INCLUDE_DIR} )
|
||||
LINK_DIRECTORIES( ${GIFLIB_DIR}/lib )
|
||||
IF(NOT MINGW)
|
||||
ADD_OSG_PLUGIN(gif ${GIF_LIBRARY})
|
||||
ADD_OSG_PLUGIN(gif ${GIFLIB_LIBRARY})
|
||||
ENDIF(NOT MINGW)
|
||||
IF(MSVC)
|
||||
SET_TARGET_PROPERTIES(osgdb_gif PROPERTIES LINK_FLAGS_DEBUG "/NODEFAULTLIB:MSVCRT")
|
||||
|
Loading…
Reference in New Issue
Block a user