From 14306c4e03b308d1c72fd35ca351bcacf7bbdc53 Mon Sep 17 00:00:00 2001 From: Robin Mills Date: Fri, 18 Sep 2015 18:25:34 +0000 Subject: [PATCH] Forum topic 2232: http://dev.exiv2.org/boards/3/topics/2232 Issue linking zlib on Visual Studio. Thanks to Emmanuel for the patch. --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index ac593613..7b970e13 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -269,7 +269,7 @@ IF( EXIV2_ENABLE_PNG ) IF( ZLIB_FOUND ) IF( MSVC ) if ( EXIV2_ENABLE_SHARED ) - TARGET_LINK_LIBRARIES( exiv2lib optimized ${ZLIB_LIBRARIES} debug ${ZLIB_LIBRARIES}d ) + TARGET_LINK_LIBRARIES( exiv2lib optimized ${ZLIB_LIBRARIES}.lib debug ${ZLIB_LIBRARIES}d.lib ) else() TARGET_LINK_LIBRARIES( exiv2lib optimized zlibstatic.lib debug zlibstaticd.lib ) endif()