diff --git a/CMakeLists.txt b/CMakeLists.txt index 16b6396bf2..07b2813448 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,6 +68,10 @@ endif() # my unity/jumbo build option(ENABLE_UNITY_BUILD "Enable Unity/Jumbo build" OFF) +if(MSVC AND ENABLE_UNITY_BUILD) + # Unity builds need big objects for MSVC... + add_compile_options(/bigobj) +endif() # qt stuff option(ENABLE_QT "Enable the Qt frontend" ON) diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt index b151e5bf5c..98bea3a27a 100644 --- a/src/yuzu/CMakeLists.txt +++ b/src/yuzu/CMakeLists.txt @@ -362,7 +362,6 @@ target_sources(yuzu PRIVATE # Add the QRC file to package in all QM files qt_add_resources( ${COMPAT_LIST} - ${ICONS} ${THEMES} LANGUAGES ${LANGUAGES_QRC} OUTPUT_TARGETS ${QRC_OUTPUT_TARGETS} @@ -457,11 +456,6 @@ if (NOT MSVC AND (APPLE OR NOT YUZU_STATIC_BUILD)) -Wno-missing-field-initializers) endif() -if(MSVC AND ENABLE_UNITY_BUILD) - # Unity builds need big objects for MSVC... - target_compile_options(yuzu PRIVATE /bigobj) -endif() - # Remember that the linker is incredibly stupid. target_link_libraries(yuzu PRIVATE OpenSSL::SSL OpenSSL::Crypto SDL2::SDL2)