summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Robinson <ssrobins@gmail.com>2019-07-13 02:17:50 (GMT)
committerBrad King <brad.king@kitware.com>2019-07-15 12:08:27 (GMT)
commit95f8b0aec750031ddecccea46012257528feb518 (patch)
tree520f746967b01f93d512bce649e652a37b7e6f1a
parenta2319c04f6c6b881b2cd37ec33378c4781f415e1 (diff)
downloadCMake-95f8b0aec750031ddecccea46012257528feb518.zip
CMake-95f8b0aec750031ddecccea46012257528feb518.tar.gz
CMake-95f8b0aec750031ddecccea46012257528feb518.tar.bz2
FindPNG: Add static libpng names for MSVC
Add names produced by the png upstream buildsystem for static libraries with MSVC.
-rw-r--r--Modules/FindPNG.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindPNG.cmake b/Modules/FindPNG.cmake
index a7908c5..bd400c7 100644
--- a/Modules/FindPNG.cmake
+++ b/Modules/FindPNG.cmake
@@ -69,8 +69,8 @@ if(ZLIB_FOUND)
unset(_PNG_VERSION_SUFFIX_MIN)
endif ()
foreach(v IN LISTS _PNG_VERSION_SUFFIXES)
- list(APPEND PNG_NAMES png${v} libpng${v})
- list(APPEND PNG_NAMES_DEBUG png${v}d libpng${v}d)
+ list(APPEND PNG_NAMES png${v} libpng${v} libpng${v}_static)
+ list(APPEND PNG_NAMES_DEBUG png${v}d libpng${v}d libpng${v}_staticd)
endforeach()
unset(_PNG_VERSION_SUFFIXES)
# For compatibility with versions prior to this multi-config search, honor