DolphinQt: don't propagate warnings in the header to Dolphin when building with Visual Studio through CMake

This commit is contained in:
iwubcode 2021-05-15 13:32:56 -05:00
parent d74a1068b8
commit 05b1566e3f
1 changed files with 5 additions and 4 deletions

View File

@ -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)