Link to iconv to fix compile on Windows

This commit is contained in:
Jonas Kvinge
2020-09-10 17:14:14 +02:00
parent ae8eed7a67
commit b756bccc7a
2 changed files with 3 additions and 0 deletions

View File

@@ -93,6 +93,7 @@ find_package(Backtrace QUIET)
if(Backtrace_FOUND)
set(HAVE_BACKTRACE ON)
endif()
find_package(Iconv QUIET)
find_package(GnuTLS REQUIRED)
find_package(Protobuf REQUIRED)
if (NOT Protobuf_PROTOC_EXECUTABLE)

View File

@@ -976,6 +976,7 @@ link_directories(
${SINGLEAPPLICATION_LIBRARY_DIRS}
${SINGLECOREAPPLICATION_LIBRARY_DIRS}
${QTSPARKLE_LIBRARY_DIRS}
${Iconv_LIBRARY_DIRS}
)
if(HAVE_ALSA)
@@ -1073,6 +1074,7 @@ target_link_libraries(strawberry_lib PUBLIC
${SINGLEAPPLICATION_LIBRARIES}
${SINGLECOREAPPLICATION_LIBRARIES}
${QTSPARKLE_LIBRARIES}
${Iconv_LIBRARY}
libstrawberry-common
libstrawberry-tagreader
)