summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorOatmealDome <OatmealDome@users.noreply.github.com>2026-03-15 12:27:02 -0400
committerGitHub <noreply@github.com>2026-03-15 12:27:02 -0400
commita28fff3f007a900310a27367a42756d3a312d54f (patch)
tree27590075b43050cff501c795872d7aa11d325f10 /CMakeLists.txt
parentb6027da5db00abd73041d794fbb7b8d7887725dc (diff)
parentc6411a29526df99d7baa6ed6b26441fb0ab14d94 (diff)
Merge pull request #14224 from JoshuaVandaele/windows-mz-ng-fix
Externals: Fix clashing dependencies
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt28
1 files changed, 12 insertions, 16 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0ffe18889b..2711a222a6 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -582,10 +582,6 @@ if(UNIX)
add_definitions(-DUSE_MEMORYWATCHER=1)
endif()
-if(ENABLE_SDL)
- dolphin_find_optional_system_library(SDL3 Externals/SDL 3.2.0)
-endif()
-
if(ENABLE_ANALYTICS)
message(STATUS "Enabling analytics collection (subject to end-user opt-in)")
add_definitions(-DUSE_ANALYTICS=1)
@@ -658,6 +654,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)
@@ -701,12 +704,14 @@ if(ENABLE_CUBEB)
endif()
if(NOT ANDROID)
- dolphin_find_optional_system_library_pkgconfig(
- LibUSB libusb-1.0 LibUSB::LibUSB Externals/libusb
- )
+ dolphin_find_optional_system_library(LibUSB Externals/libusb)
add_definitions(-D__LIBUSB__)
endif()
+if(ENABLE_SDL)
+ dolphin_find_optional_system_library(SDL3 Externals/SDL 3.2.0)
+endif()
+
dolphin_find_optional_system_library(SFML Externals/SFML 3.0 COMPONENTS Network System)
if(USE_UPNP)
@@ -718,15 +723,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()