summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorMichael Hofmann <kmhofmann@gmail.com>2018-05-10 15:25:15 (GMT)
committerBrad King <brad.king@kitware.com>2018-05-11 13:57:52 (GMT)
commit322eab042948463c278b9ddec7f07f6ca84c5fe9 (patch)
treee174748fb935de623af6d5d96f93355618536968 /Modules
parentda30ba3ab836df94ea973b3e33ac2980ff1f47c9 (diff)
downloadCMake-322eab042948463c278b9ddec7f07f6ca84c5fe9.zip
CMake-322eab042948463c278b9ddec7f07f6ca84c5fe9.tar.gz
CMake-322eab042948463c278b9ddec7f07f6ca84c5fe9.tar.bz2
FindJPEG: Add 'jpeg-static' to searched names
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 On Windows the resulting .lib file is called 'jpeg-static.lib'. Consider this name while searching.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindJPEG.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindJPEG.cmake b/Modules/FindJPEG.cmake
index 9542f69..61a2213 100644
--- a/Modules/FindJPEG.cmake
+++ b/Modules/FindJPEG.cmake
@@ -51,7 +51,7 @@
find_path(JPEG_INCLUDE_DIR jpeglib.h)
-set(jpeg_names ${JPEG_NAMES} jpeg libjpeg)
+set(jpeg_names ${JPEG_NAMES} jpeg jpeg-static libjpeg libjpeg-static)
foreach(name ${JPEG_NAMES})
list(APPEND jpeg_names_debug "${name}d")
endforeach()