diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index 9aa5ff1bdc..d68acaca4f 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -67,7 +67,11 @@ if (MSVC) # All files are encoded as UTF-8 add_compile_options(/utf-8) - # Use PCH + # Ignore warnings in external headers + add_compile_options(/external:anglebrackets) + add_compile_options(/external:W0) + add_compile_options(/external:templates-) + add_subdirectory(PCH) add_definitions(/I${PCH_DIRECTORY}) add_definitions(/Yu${PCH_PATH}) diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt index 000e5767a4..7f65c62179 100644 --- a/Source/Core/DolphinQt/CMakeLists.txt +++ b/Source/Core/DolphinQt/CMakeLists.txt @@ -382,9 +382,6 @@ if (WIN32) endif() if (MSVC) - # 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) set(qtGui "") set(qtGuiPriv "") set(qtWidgetsPriv "")