diff --git a/src/yuzu/CMakeLists.txt b/src/yuzu/CMakeLists.txt index 89c1a9ea37..58256212a1 100644 --- a/src/yuzu/CMakeLists.txt +++ b/src/yuzu/CMakeLists.txt @@ -500,11 +500,13 @@ set(BUILD_SHARED_LIBS OFF) include(CPM) CPMAddPackage("gh:stachenov/quazip@1.5") -target_compile_options(QuaZip - PRIVATE - -Wno-error=shadow - -Wno-error=missing-declarations -) +if (NOT MSVC) + target_compile_options(QuaZip + PRIVATE + -Wno-error=shadow + -Wno-error=missing-declarations + ) +endif() target_link_libraries(yuzu PRIVATE QuaZip::QuaZip)