FindJPEG: jpegturbo and jpeg don't seem to be actually interchangeable (at least on mingw)
This !5683 (merged) is breaking poppler when [cross] compiling under mingw, in windows libjpegturbo and libjpeg (both provided by libjpegturbo tarball) don't seem to contain both the same symbols.
Example:
$ objdump -p /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libjpeg-62.dll | grep jpeg_set_defaults
[ 80] jpeg_set_defaults
$ objdump -p /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libturbojpeg.dll | grep jpeg_set_defaults
$
Could we maybe add an if to that MR so it does not happen on Windows?
Edited by Brad King