From eb3924b27073696140d8f5d315c0dc6fa4025c1e Mon Sep 17 00:00:00 2001 From: Scott M Anderson Date: Tue, 16 Sep 2025 12:32:20 -0600 Subject: [PATCH] link with Iconv::Iconv on non-MSW platforms --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1349882..e8489e1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,8 @@ else() string(JOIN "\n" EXT2 "if(NOT TARGET ${libName})" " add_library(${libName} INTERFACE IMPORTED)" + " find_package(Iconv REQUIRED)" + " target_link_libraries(${libName} INTERFACE Iconv::Iconv)" "endif()" "" )