diff options
| -rw-r--r-- | ports/exiv2/1059-Add-missing-library-link-on-Windows.patch | 19 | ||||
| -rw-r--r-- | ports/exiv2/portfile.cmake | 1 |
2 files changed, 20 insertions, 0 deletions
diff --git a/ports/exiv2/1059-Add-missing-library-link-on-Windows.patch b/ports/exiv2/1059-Add-missing-library-link-on-Windows.patch new file mode 100644 index 000000000..2a61c10f1 --- /dev/null +++ b/ports/exiv2/1059-Add-missing-library-link-on-Windows.patch @@ -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 ) diff --git a/ports/exiv2/portfile.cmake b/ports/exiv2/portfile.cmake index 94cf5a1ed..86c495f4f 100644 --- a/ports/exiv2/portfile.cmake +++ b/ports/exiv2/portfile.cmake @@ -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)) |
