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 authored and Brad King committed 2014-06-27 09:26:05 -04:00
1 parent 1f36b03504
commit 115811dcbd
1 file changed
+1 -1
+1 -1
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