summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorJoshua Vandaƫle <joshua@vandaele.software>2025-12-24 04:59:08 +0100
committerJoshua Vandaƫle <joshua@vandaele.software>2026-02-25 07:25:29 +0100
commit4af06fd487e896e5ad162bea1d53a390f90151c7 (patch)
tree958fd906a44545fd4c3e96746d72787e13691422 /CMakeLists.txt
parent11065e99114e95bab4b617fa9b50ceb43019adee (diff)
minizip-ng: Properly use libraries from Externals
This also fixes the CMake build on Windows, since it would fail to find our target defined in Externals and would fall back to trying to redefine it, which produces an error.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt16
1 files changed, 7 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 170b7e0632..b3f27e994f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -658,6 +658,13 @@ if(NOT (WIN32 AND _M_ARM_64))
add_definitions(-DHAS_OPENGL)
endif()
+if(NOT WIN32)
+ if(ANDROID)
+ set(USE_SYSTEM_Iconv OFF)
+ endif()
+ dolphin_find_optional_system_library(Iconv Externals/libiconv 1.14)
+endif()
+
dolphin_find_optional_system_library(pugixml Externals/pugixml)
dolphin_find_optional_system_library_pkgconfig(ENET libenet>=1.3.18 enet::enet Externals/enet)
@@ -718,15 +725,6 @@ dolphin_find_optional_system_library(MBEDTLS Externals/mbedtls 2.28)
dolphin_find_optional_system_library(CURL Externals/curl)
-if(NOT WIN32)
- if(NOT ANDROID)
- dolphin_find_optional_system_library(Iconv Externals/libiconv 1.14)
- else()
- message(STATUS "Using static iconv from Externals")
- add_subdirectory(Externals/libiconv EXCLUDE_FROM_ALL)
- endif()
-endif()
-
if(NOT ANDROID)
dolphin_find_optional_system_library(HIDAPI Externals/hidapi)
endif()