diff --git a/cmake/FindPoppler.cmake b/cmake/FindPoppler.cmake index 600f625..5276c07 100644 --- a/cmake/FindPoppler.cmake +++ b/cmake/FindPoppler.cmake @@ -53,6 +53,10 @@ if(POPPLER_FOUND) else() set(POPPLER_LIBRARIES ${POPPLER_CPP_LIBRARY} ${POPPLER_CORE_LIBRARY}) endif() + if(ANDROID AND POPPLER_CPP_LIBRARY MATCHES "\\.a$") + find_package(Iconv REQUIRED) + list(APPEND POPPLER_LIBRARIES Iconv::Iconv) + endif() endif() mark_as_advanced(POPPLER_INCLUDE_DIR POPPLER_CPP_LIBRARY POPPLER_CORE_LIBRARY)