BUG: #7416 fix error when jpeg is not found

This commit is contained in:
Bill Hoffman 2008-07-29 16:41:29 -04:00
parent f8f5dde2ee
commit d34068e2d4
1 changed files with 3 additions and 1 deletions

View File

@ -23,6 +23,8 @@ ENDIF(JPEG_FOUND)
# Deprecated declarations.
SET (NATIVE_JPEG_INCLUDE_PATH ${JPEG_INCLUDE_DIR} )
GET_FILENAME_COMPONENT (NATIVE_JPEG_LIB_PATH ${JPEG_LIBRARY} PATH)
IF(JPEG_LIBRARY)
GET_FILENAME_COMPONENT (NATIVE_JPEG_LIB_PATH ${JPEG_LIBRARY} PATH)
ENDIF(JPEG_LIBRARY)
MARK_AS_ADVANCED(JPEG_LIBRARY JPEG_INCLUDE_DIR )