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:
parent
1f36b03504
commit
115811dcbd
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
find_path(JPEG_INCLUDE_DIR jpeglib.h)
|
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} )
|
find_library(JPEG_LIBRARY NAMES ${JPEG_NAMES} )
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set JPEG_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set JPEG_FOUND to TRUE if
|
||||||
|
|
Loading…
Reference in New Issue