mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
BUG: #7416 fix error when jpeg is not found
This commit is contained in:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user