From 05b1566e3f8febbf94827899214ad8a135797bd2 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Sat, 15 May 2021 13:32:56 -0500 Subject: [PATCH] DolphinQt: don't propagate warnings in the header to Dolphin when building with Visual Studio through CMake --- Source/Core/DolphinQt/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt index 13c9a3d79a..288e313e3f 100644 --- a/Source/Core/DolphinQt/CMakeLists.txt +++ b/Source/Core/DolphinQt/CMakeLists.txt @@ -350,10 +350,11 @@ if (WIN32) endif() if (MSVC) - # Disable some warnings - - # 5054: operator '+': deprecated between enumerations of different types (in Qt headers) - target_compile_options(dolphin-emu PRIVATE /wd5054) + # Don't propogate warnings in qt headers to Dolphin + target_compile_options(dolphin-emu PRIVATE /experimental:external) + target_compile_options(dolphin-emu PRIVATE /external:W0) + target_compile_options(dolphin-emu PRIVATE "/external:I${Qt5Gui_PRIVATE_INCLUDE_DIRS}") + target_compile_options(dolphin-emu PRIVATE "/external:I${Qt5Widgets_PRIVATE_INCLUDE_DIRS}") endif() if(WIN32)