mirror of
https://github.com/yuzu-mirror/yuzu.git
synced 2024-11-18 07:49:58 +00:00
CMakeLists: Disable all warnings for external headers
This lets us avoid needing to wrap external headers with #pragma warning directives for warnings we treat as errors and avoids generating warnings for external code. Thanks to MerryMage for pointing this out.
This commit is contained in:
parent
22d7b89c15
commit
248a146ab7
1 changed files with 5 additions and 0 deletions
|
@ -45,6 +45,11 @@ if (MSVC)
|
||||||
/Zc:inline
|
/Zc:inline
|
||||||
/Zc:throwingNew
|
/Zc:throwingNew
|
||||||
|
|
||||||
|
# External headers diagnostics
|
||||||
|
/experimental:external # Enables the external headers options. This option isn't required in Visual Studio 2019 version 16.10 and later
|
||||||
|
/external:anglebrackets # Treats all headers included by #include <header>, where the header file is enclosed in angle brackets (< >), as external headers
|
||||||
|
/external:W0 # Sets the default warning level to 0 for external headers, effectively turning off warnings for external headers
|
||||||
|
|
||||||
# Warnings
|
# Warnings
|
||||||
/W3
|
/W3
|
||||||
/we4018 # 'expression': signed/unsigned mismatch
|
/we4018 # 'expression': signed/unsigned mismatch
|
||||||
|
|
Loading…
Reference in a new issue