From b1d87e336e89db7c4fbcad096b0dc7d898493e5b Mon Sep 17 00:00:00 2001 From: hop311 Date: Fri, 28 Aug 2026 08:55:04 +0100 Subject: [PATCH] Fix iconv linking for MinGW builds --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8c5feed..6a287b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -142,6 +142,8 @@ if(APPLE) # converter uses iconv. PUBLIC: executables linking this static library # need them on their own link lines. target_link_libraries(openvic-dataloader PUBLIC "-framework CoreFoundation" iconv) +elseif(MINGW) + target_link_libraries(openvic-dataloader PUBLIC iconv) endif() set_target_properties(openvic-dataloader PROPERTIES ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/$")