From 8b73be490cd4cc45c89f90b644169a226da7470a Mon Sep 17 00:00:00 2001 From: crueter Date: Sat, 12 Jul 2025 18:59:59 -0400 Subject: [PATCH] Fix windows compilation Signed-off-by: crueter --- src/yuzu/CMakeLists.txt | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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)