FindJPEG: Add alternative name 'libjpeg'

Newer versions of jpeglib build the .lib file on Windows with a
different name by default.  Its now called libjpeg.lib instead of
jpeg.lib.
This commit is contained in:
Sebastian Elsner 2014-06-26 21:12:29 +02:00 committed by Brad King
parent 1f36b03504
commit 115811dcbd
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@
find_path(JPEG_INCLUDE_DIR jpeglib.h)
set(JPEG_NAMES ${JPEG_NAMES} jpeg)
set(JPEG_NAMES ${JPEG_NAMES} jpeg libjpeg)
find_library(JPEG_LIBRARY NAMES ${JPEG_NAMES} )
# handle the QUIETLY and REQUIRED arguments and set JPEG_FOUND to TRUE if