diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2008-07-29 20:41:29 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2008-07-29 20:41:29 (GMT) |
commit | d34068e2d4a15b81f1646bbb9868bdeff539ed49 (patch) | |
tree | 0e961fef396731fac4c3e05b2a93f55c07c8b8b5 /Modules/FindJPEG.cmake | |
parent | f8f5dde2eec468f8c2ccebabb9771b5f8d21f864 (diff) | |
download | CMake-d34068e2d4a15b81f1646bbb9868bdeff539ed49.zip CMake-d34068e2d4a15b81f1646bbb9868bdeff539ed49.tar.gz CMake-d34068e2d4a15b81f1646bbb9868bdeff539ed49.tar.bz2 |
BUG: #7416 fix error when jpeg is not found
Diffstat (limited to 'Modules/FindJPEG.cmake')
-rw-r--r-- | Modules/FindJPEG.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindJPEG.cmake b/Modules/FindJPEG.cmake index 3692ee1..9849294 100644 --- a/Modules/FindJPEG.cmake +++ b/Modules/FindJPEG.cmake @@ -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 ) |