mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-04 12:49:36 -06:00
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:
committed by
Brad King
parent
1f36b03504
commit
115811dcbd
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user