[exiv2] Add missing library link on Windows (#9024)

This commit is contained in:
Michał Janiszewski 2019-11-19 19:48:48 +01:00 committed by Robert Schumacher
parent 29def6aa63
commit 9463f7d789
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,19 @@
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index dcb98ca23..3cbd68e7e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -182,12 +182,12 @@ if (NOT MSVC)
endif()
if (CYGWIN OR MINGW OR MSYS)
- target_link_libraries( exiv2lib PRIVATE psapi ws2_32 )
+ target_link_libraries( exiv2lib PRIVATE psapi ws2_32 shell32 )
endif()
target_link_libraries( exiv2lib PRIVATE Threads::Threads)
else()
- target_link_libraries( exiv2lib PRIVATE psapi ws2_32 )
+ target_link_libraries( exiv2lib PRIVATE psapi ws2_32 shell32 )
endif()
if( EXIV2_ENABLE_PNG )

View File

@ -8,6 +8,7 @@ vcpkg_from_github(
HEAD_REF master
PATCHES
iconv.patch
1059-Add-missing-library-link-on-Windows.patch # https://github.com/Exiv2/exiv2/pull/1059
)
if((NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore") AND ("unicode" IN_LIST FEATURES))