vcpkg/ports/exiv2/1059-Add-missing-library-link-on-Windows.patch

20 lines
607 B
Diff
Raw Normal View History

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 )