From 302ed9c7d67bfc1ee26c9de9e182fe67163b4d3b Mon Sep 17 00:00:00 2001 From: Caio Oliveira Date: Thu, 8 Jan 2026 22:12:50 -0300 Subject: [PATCH] [cmake] Disable WEB_SERVICE on Debug Builds * Just so we don't need to compile OpenSSL * Unless you're debugging WEB_SERVICE then just -DENABLE_WEB_SERVICE=ON Signed-off-by: Caio Oliveira --- CMakeLists.txt | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 966f30749b..0483a720fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -164,7 +164,7 @@ cmake_dependent_option(YUZU_USE_EXTERNAL_FFMPEG "Build FFmpeg from external sour # sirit set(BUNDLED_SIRIT_DEFAULT OFF) -if (MSVC AND NOT (CMAKE_BUILD_TYPE MATCHES "Deb") OR ANDROID) +if((MSVC AND NOT (CMAKE_BUILD_TYPE MATCHES "Debug|RelWithDebInfo")) OR (ANDROID)) set(BUNDLED_SIRIT_DEFAULT ON) endif() @@ -176,7 +176,12 @@ cmake_dependent_option(ENABLE_LIBUSB "Enable the use of LibUSB" ON "WIN32 OR PLA cmake_dependent_option(ENABLE_OPENGL "Enable OpenGL" ON "NOT WIN32 OR NOT ARCHITECTURE_arm64" OFF) mark_as_advanced(FORCE ENABLE_OPENGL) -option(ENABLE_WEB_SERVICE "Enable web services (telemetry, etc.)" ON) +set(DEFAULT_ENABLE_WEB_SERVICE ON) +if((MSVC AND (CMAKE_BUILD_TYPE MATCHES "Debug|RelWithDebInfo"))) + set(DEFAULT_ENABLE_WEB_SERVICE OFF) +endif() +option(ENABLE_WEB_SERVICE "Enable web services for multiplayer" ${DEFAULT_ENABLE_WEB_SERVICE}) + option(ENABLE_WIFI_SCAN "Enable WiFi scanning" OFF) cmake_dependent_option(USE_DISCORD_PRESENCE "Enables Discord Rich Presence" OFF "ENABLE_QT" OFF)