2018-06-12 10:32:58 -07:00
|
|
|
--- a/cmake/findDependencies.cmake
|
|
|
|
+++ b/cmake/findDependencies.cmake
|
2019-03-29 09:46:03 +11:00
|
|
|
@@ -36,5 +36,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
if (EXIV2_ENABLE_NLS)
|
|
|
|
- find_package(Intl REQUIRED)
|
|
|
|
+ find_package(unofficial-gettext CONFIG)
|
2018-06-12 10:32:58 -07:00
|
|
|
endif( )
|
|
|
|
|
|
|
|
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
|
|
|
index 91469b6..4c51068 100644
|
|
|
|
--- a/src/CMakeLists.txt
|
|
|
|
+++ b/src/CMakeLists.txt
|
2019-03-29 09:46:03 +11:00
|
|
|
@@ -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}")
|
2018-06-12 10:32:58 -07:00
|
|
|
endif()
|
|
|
|
|
|
|
|
-if( ICONV_FOUND )
|
|
|
|
- target_link_libraries( exiv2lib PRIVATE Iconv::Iconv )
|
2019-03-29 09:46:03 +11:00
|
|
|
-endif()
|
|
|
|
+if(NOT TARGET unofficial::iconv::libiconv)
|
|
|
|
+ find_package(unofficial-iconv CONFIG)
|
|
|
|
+endif()
|
|
|
|
+target_link_libraries( exiv2lib PRIVATE unofficial::iconv::libiconv )
|
|
|
|
|
2018-06-12 10:32:58 -07:00
|
|
|
|
2019-03-29 09:46:03 +11:00
|
|
|
|
2018-06-12 10:32:58 -07:00
|
|
|
|