mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 20:59:12 +08:00
37 lines
1.0 KiB
Diff
37 lines
1.0 KiB
Diff
--- a/cmake/findDependencies.cmake
|
|
+++ b/cmake/findDependencies.cmake
|
|
@@ -36,5 +36,5 @@
|
|
|
|
|
|
if (EXIV2_ENABLE_NLS)
|
|
- find_package(Intl REQUIRED)
|
|
+ find_package(unofficial-gettext CONFIG)
|
|
endif( )
|
|
|
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
index 91469b6..4c51068 100644
|
|
--- a/src/CMakeLists.txt
|
|
+++ b/src/CMakeLists.txt
|
|
@@ -208,14 +208,14 @@
|
|
endif()
|
|
|
|
if( EXIV2_ENABLE_NLS )
|
|
- target_link_libraries(exiv2lib PRIVATE ${Intl_LIBRARIES})
|
|
- target_include_directories(exiv2lib PRIVATE ${Intl_INCLUDE_DIRS})
|
|
+ target_link_libraries(exiv2lib PRIVATE unofficial::gettext::libintl)
|
|
# Definition needed for translations
|
|
target_compile_definitions(exiv2lib PUBLIC EXV_LOCALEDIR="/../${CMAKE_INSTALL_LOCALEDIR}")
|
|
endif()
|
|
|
|
-if( ICONV_FOUND )
|
|
- target_link_libraries( exiv2lib PRIVATE Iconv::Iconv )
|
|
-endif()
|
|
+if(NOT TARGET unofficial::iconv::libiconv)
|
|
+ find_package(unofficial-iconv CONFIG)
|
|
+endif()
|
|
+target_link_libraries( exiv2lib PRIVATE unofficial::iconv::libiconv )
|
|
|
|
|
|
|
|
|