mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 09:43:02 +08:00
[exiv2] Add missing library link on Windows (#9024)
This commit is contained in:
parent
29def6aa63
commit
9463f7d789
19
ports/exiv2/1059-Add-missing-library-link-on-Windows.patch
Normal file
19
ports/exiv2/1059-Add-missing-library-link-on-Windows.patch
Normal 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 )
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user