From 941c6ca7d817c03cc2ac477e10cc599dd6bb124d Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Wed, 28 Apr 2021 09:25:10 -0700 Subject: [PATCH] fix underlinking iconv in gdk on macos --- src/modules/gdk/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/gdk/CMakeLists.txt b/src/modules/gdk/CMakeLists.txt index debff9aaf..090b35377 100644 --- a/src/modules/gdk/CMakeLists.txt +++ b/src/modules/gdk/CMakeLists.txt @@ -19,6 +19,9 @@ endif() if(TARGET PkgConfig::pango AND TARGET PkgConfig::fontconfig) target_sources(mltgdk PRIVATE producer_pango.c) target_link_libraries(mltgdk PRIVATE PkgConfig::pango PkgConfig::fontconfig PkgConfig::pangoft2) + if(APPLE) + target_link_libraries(mltgdk PRIVATE iconv) + endif() target_compile_definitions(mltgdk PRIVATE USE_PANGO) install(FILES producer_pango.yml DESTINATION ${MLT_INSTALL_DATA_DIR}/gdk) endif()