mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-09 15:49:25 +01:00
cmake: ignore external warnings in MSVC
Since we also treat all warnings as errors, we need to ignore these to successfully build.
This commit is contained in:
parent
987f270083
commit
2348017ee8
@ -67,7 +67,11 @@ if (MSVC)
|
|||||||
# All files are encoded as UTF-8
|
# All files are encoded as UTF-8
|
||||||
add_compile_options(/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_subdirectory(PCH)
|
||||||
add_definitions(/I${PCH_DIRECTORY})
|
add_definitions(/I${PCH_DIRECTORY})
|
||||||
add_definitions(/Yu${PCH_PATH})
|
add_definitions(/Yu${PCH_PATH})
|
||||||
|
@ -382,9 +382,6 @@ if (WIN32)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (MSVC)
|
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(qtGui "")
|
||||||
set(qtGuiPriv "")
|
set(qtGuiPriv "")
|
||||||
set(qtWidgetsPriv "")
|
set(qtWidgetsPriv "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user