Skip to main content

CMake Options

Set an option with -DOPTION_NAME=VALUE when configuring CMake. Boolean values are ON or OFF. In Qt Creator, use Project → Current Configuration.

Platform-dependent defaults

Defaults shown as “platform-dependent” vary according to the conditions in CMake. Some options are also disabled or unavailable when their prerequisites are off.

Dependencies​

OptionDefaultDescription
YUZU_USE_BUNDLED_FFMPEGON on MSVC and Android; otherwise OFFDownload the bundled FFmpeg build.
YUZU_USE_EXTERNAL_FFMPEGON on Solaris; otherwise OFFBuild FFmpeg from external source; unavailable on Windows and Android.
YUZU_USE_BUNDLED_SDL3ON on MSVC and Android; otherwise OFFDownload the bundled SDL3 build.
YUZU_USE_BUNDLED_SIRITON on Android and MSVC non-Debug builds; otherwise OFFDownload bundled sirit.
YUZU_USE_BUNDLED_OPENSSLON on MSVC, Android, Solaris, and OpenBSD; otherwise OFFDownload the bundled OpenSSL build.
YUZU_USE_BUNDLED_MOLTENVKON on Apple platforms; otherwise OFFDownload bundled MoltenVK.
YUZU_DOWNLOAD_ANDROID_VVLONDownload the Vulkan validation layer binary for Android.
YUZU_DOWNLOAD_TIME_ZONE_DATAONDownload time-zone data.
YUZU_TZDB_PATHEmptyPath to a pre-downloaded time-zone database.
CPMUTIL_FORCE_BUNDLEDON on MSVC, Android, and iOS; otherwise OFFPrefer bundled packages for all CPMUtil dependencies.
CPMUTIL_FORCE_SYSTEMOFFPrefer system packages for all CPMUtil dependencies.
CPM_DONT_UPDATE_MODULE_PATH$ENV{CPM_DONT_UPDATE_MODULE_PATH}Do not update the CPM module path, allowing find_package use.
tip

CPMUTIL_FORCE_BUNDLED and CPMUTIL_FORCE_SYSTEM apply globally; they are not the same as the individual bundled-dependency options.

Build features and tools​

OptionDefaultDescription
ENABLE_WEB_SERVICEONEnable web services, including telemetry.
ENABLE_MCP_SERVERONBuild the built-in MCP server for AI agents; it is off at runtime by default.
ENABLE_WIFI_SCANOFFEnable Wi-Fi scanning.
ENABLE_CUBEBONEnable the cubeb audio backend.
YUZU_TESTS${BUILD_TESTING}Compile tests.
ENABLE_DEBUG_TOOLSOFFBuild debugging tools such as the Maxwell disassembler and SPIR-V translator.
ENABLE_WERRORONTreat compiler warnings as errors, with selected warning exceptions.
ENABLE_LTOOFFEnable link-time optimization.
ENABLE_LSFGONEnable LSFG and FSR 3 Fluid Motion frame generation.
ENABLE_RESHADEONEnable ReShade FX post-processing effects.
ENABLE_RENHDRUMONEnable RenHDrum controller vibration support when renhdrum.dll is present.
RENHDRUM_SDL_PATCHESOFFBuild SDL3 from source with RenHDrum HD Rumble transport patches; requires ENABLE_RENHDRUM.
ENABLE_LIBUSBON on Windows, Linux, FreeBSD, and Apple platforms; otherwise OFFEnable the libusb input backend.
ENABLE_OPENGLON except Windows ARM64, Apple platforms, and Android; otherwise OFFEnable the OpenGL graphics backend.
YUZU_INSTALL_UDEV_RULESOFFInstall Linux udev rules for gyro access.
YUZU_CRASH_DUMPSOFFCompile Minidump crash-dump support; available on Windows and Linux.
YUZU_DISABLE_LLVMOFFDisable LLVM integration (primarily useful for CI).

Executables and distribution​

OptionDefaultDescription
ENABLE_QTONBuild the Qt frontend.
YUZU_CMDON except Android, where it is OFFBuild the eden-cli executable.
YUZU_ROOMON except Android, where it is OFFEnable dedicated room functionality.
YUZU_ROOM_STANDALONEON when YUZU_ROOM is enabled; otherwise OFFBuild a separate room executable.
YUZU_STATIC_ROOMOFFLinux-only mode for building a static room executable only (CI use).
YUZU_STATIC_BUILDOFFUse static libraries and executables where available.
YUZU_LEGACYOFFApply compatibility patches for some older GPUs at a performance cost.
NIGHTLY_BUILDOFFAdd Nightly qualifiers to the update checker and build metadata.
ENABLE_UPDATE_CHECKEROFFEnable update checking for Qt and Android.
EGLANTINE_UPDATE_REPOEglantine-Community/EglantineGitHub owner/repository read by the update checker.
EGLANTINE_RELEASE_PLATFORMEmptyRelease asset platform identifier for the build.
EGLANTINE_FOLLOW_BRANCHEmptyUpdate repository branch followed by tester builds.
GENERATE_QT_TRANSLATIONOFFGenerate en.ts as the Qt translation source file.
WORKAROUND_BROKEN_LUPDATEOFFRun lupdate directly through CMake if Qt's convenience wrappers do not work.
warning

YUZU_STATIC_BUILD and bundled-Qt settings can affect each other: bundled Qt automatically enables static builds on Apple and non-UNIX platforms. The static-room option also forces a reduced feature set.

Qt options​

OptionDefaultDescription
ENABLE_QT_TRANSLATIONONEnable translations for the Qt frontend.
YUZU_USE_BUNDLED_QTON on MSVC when Qt is enabled; otherwise OFFDownload bundled Qt binaries.
YUZU_QT_MIRROREmptyMirror used to download bundled Qt libraries.
YUZU_USE_QT_MULTIMEDIAOFFUse QtMultimedia for camera support; only applies when bundled Qt is not used.
YUZU_USE_QT_WEB_ENGINEOFFUse QtWebEngine for web applets; only applies when bundled Qt is not used.
USE_DISCORD_PRESENCEOFFEnable Discord Rich Presence; requires Qt.

Dynarmic​

These options configure the Dynarmic dependency and are usually only relevant to developers or distributors.

OptionDefaultDescription
DYNARMIC_ENABLE_CPU_FEATURE_DETECTIONONDetect host CPU features; when disabled, Dynarmic assumes no support beyond SSE3.
DYNARMIC_ENABLE_NO_EXECUTE_SUPPORT${REQUIRE_WX}Enable support for systems that require write-xor-execute memory.
DYNARMIC_IGNORE_ASSERTSONIgnore Dynarmic assertions.
DYNARMIC_TESTS${BUILD_TESTING}Build Dynarmic tests.
DYNARMIC_TESTS_USE_UNICORNOFFEnable Dynarmic fuzzing tests against Unicorn.
DYNARMIC_INSTALLOFFInstall Dynarmic headers and CMake files.
DYNARMIC_USE_BUNDLED_EXTERNALSOFFUse bundled Dynarmic externals, useful when cross-compiling.

The following legacy options from the earlier page are not defined in the current CMake configuration: ENABLE_OPENSSL, ENABLE_SDL2, YUZU_USE_CPM, and YUZU_USE_EXTERNAL_SDL.