summaryrefslogtreecommitdiff
path: root/Modules/FindJPEG.cmake
diff options
context:
space:
mode:
authorAndrey Karpov <ndk@yandex.ru>2018-06-20 12:35:22 +0300
committerBrad King <brad.king@kitware.com>2018-06-21 10:47:03 -0400
commit7876f329a95c361bae2805ad8117e62f4e0b65e1 (patch)
tree4f647582527c67db6922516b4c3f7854388f6ffb /Modules/FindJPEG.cmake
parentef5e2e8a62982ebccf4883fc7a01cdb66f8ca183 (diff)
downloadcmake-7876f329a95c361bae2805ad8117e62f4e0b65e1.tar.gz
FindJPEG: Add forgotten names of libraries for Debug configuration
The change in commit v3.12.0-rc1~202^2~1 (FindJPEG: Add multi config support and associated docs, 2018-04-17) accidentally left out the default jpeg library names from consideration for debug variants.
Diffstat (limited to 'Modules/FindJPEG.cmake')
-rw-r--r--Modules/FindJPEG.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindJPEG.cmake b/Modules/FindJPEG.cmake
index 61a2213770..710188e8fa 100644
--- a/Modules/FindJPEG.cmake
+++ b/Modules/FindJPEG.cmake
@@ -52,7 +52,7 @@
find_path(JPEG_INCLUDE_DIR jpeglib.h)
set(jpeg_names ${JPEG_NAMES} jpeg jpeg-static libjpeg libjpeg-static)
-foreach(name ${JPEG_NAMES})
+foreach(name ${jpeg_names})
list(APPEND jpeg_names_debug "${name}d")
endforeach()