diff options
| author | MichaĆ Janiszewski <janisozaur@users.noreply.github.com> | 2019-11-19 19:48:48 +0100 |
|---|---|---|
| committer | Robert Schumacher <roschuma@microsoft.com> | 2019-11-19 10:48:48 -0800 |
| commit | 9463f7d789b27bedb6dd51e879d0d44e199c5c48 (patch) | |
| tree | 634d12e2642326c695d065484e68ce72b7fcc76e | |
| parent | 29def6aa636a9985d068aa4624172720c0005e09 (diff) | |
| download | vcpkg-9463f7d789b27bedb6dd51e879d0d44e199c5c48.tar.gz vcpkg-9463f7d789b27bedb6dd51e879d0d44e199c5c48.zip | |
[exiv2] Add missing library link on Windows (#9024)
| -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)) |
