Skip to content

FindJPEG.cmake: add 'jpeg-static' as searched name.

Michael Hofmann requested to merge kmhofmann/cmake:findjpeg_static_fix into master

A statically built libjpeg-turbo library will have a '-static' suffix; see the jpeg-static CMake target here: https://github.com/libjpeg-turbo/libjpeg-turbo/blob/1.5.3/CMakeLists.txt#L936 For example, when installing libjpeg-turbo via Conan (libjpeg-turbo/1.5.2@bincrafters/stable) on Windows, the resulting .lib file is called 'jpeg-static.lib'. Without adding the name 'jpeg-static' to the list of JPEG_NAMES, this library cannot be found. Adding the name fixes this.

Edited by Brad King

Merge request reports