Skip to content

Commit

Permalink
Fix iconv dependency export in CMake config file
Browse files Browse the repository at this point in the history
(cherry picked from commit 8545614)

# Conflicts:
#	src/CMakeLists.txt
  • Loading branch information
kmilos authored and mergify[bot] committed Jan 9, 2025
1 parent af028a1 commit 1aed5fb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,33 @@ if( EXIV2_ENABLE_NLS )
target_compile_definitions(exiv2lib PUBLIC EXV_LOCALEDIR="${EXV_LOCALEDIR}")
endif()

<<<<<<< HEAD
if( Iconv_FOUND AND Iconv_LIBRARIES )
target_link_libraries( exiv2lib PRIVATE Iconv::Iconv )
list(APPEND libs_private_list "iconv")
set(EXV_HAVE_LIBICONV TRUE PARENT_SCOPE)
else()
set(EXV_HAVE_LIBICONV FALSE PARENT_SCOPE)
=======
if(EXIV2_ENABLE_NLS)
target_link_libraries(exiv2lib PRIVATE ${Intl_LIBRARIES})
target_include_directories(exiv2lib PRIVATE ${Intl_INCLUDE_DIRS})
target_include_directories(exiv2lib_int PRIVATE ${Intl_INCLUDE_DIRS})
if(Intl_LIBRARIES)
list(APPEND libs_private_list "intl")
endif()
# Definition needed for translations
join_paths(EXV_LOCALEDIR ".." "${CMAKE_INSTALL_LOCALEDIR}")
target_compile_definitions(exiv2lib PUBLIC EXV_LOCALEDIR="${EXV_LOCALEDIR}")
endif()

if(Iconv_FOUND AND Iconv_LIBRARIES)
target_link_libraries(exiv2lib PRIVATE Iconv::Iconv)
list(APPEND libs_private_list "iconv")
set(EXV_HAVE_LIBICONV TRUE)
else()
set(EXV_HAVE_LIBICONV FALSE)
>>>>>>> 85456148 (Fix iconv dependency export in CMake config file)
endif()

if( EXIV2_ENABLE_INIH )
Expand Down

0 comments on commit 1aed5fb

Please sign in to comment.