From 74eaa8aa4a7acab8887235a5d6db82b9e47fc442 Mon Sep 17 00:00:00 2001 From: "K. S. Ernest (iFire) Lee" Date: Wed, 17 Nov 2021 10:29:24 -0800 Subject: [PATCH] Enable iconf. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c297ffa..a3f8ac4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -205,6 +205,10 @@ if (NOT MSVC) ) endif() +if (APPLE) +set(ICONV_MAC_LIB libiconv) +endif() + target_link_libraries(libFBX2glTF ${FRAMEWORKS} ${DRACO_LIB} @@ -216,6 +220,7 @@ target_link_libraries(libFBX2glTF ZLIB::ZLIB Iconv::Iconv LibXml2::LibXml2 + ${ICONV_MAC_LIB} ${CMAKE_DL_LIBS} ${CMAKE_THREAD_LIBS_INIT} )