Skip to content

Commit

Permalink
Switch to CMake provided FindIconv
Browse files Browse the repository at this point in the history
  • Loading branch information
kmilos committed Jan 26, 2023
1 parent 356cab8 commit 19cd925
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 136 deletions.
132 changes: 0 additions & 132 deletions cmake/FindIconv.cmake

This file was deleted.

6 changes: 2 additions & 4 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,9 @@ if( EXIV2_ENABLE_NLS )
target_compile_definitions(exiv2lib PUBLIC EXV_LOCALEDIR="${EXV_LOCALEDIR}")
endif()

if( ICONV_FOUND )
if( Iconv_FOUND AND Iconv_LIBRARIES )
target_link_libraries( exiv2lib PRIVATE Iconv::Iconv )
if(NOT Iconv_IS_BUILT_IN)
list(APPEND requires_private_list "iconv")
endif()
list(APPEND requires_private_list "iconv")
endif()

if( EXIV2_ENABLE_INIH )
Expand Down

0 comments on commit 19cd925

Please sign in to comment.