summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorph <39850852+Morph1984@users.noreply.github.com>2021-06-28 20:23:41 +0200
committerMorph <39850852+Morph1984@users.noreply.github.com>2021-06-28 20:24:28 +0200
commit248a146ab79b732cd02632f5ecf58d70ba3bce91 (patch)
tree9a54a99c29c98e97eceab7ded8031cd1edd381d8
parentvideo_core: Remove #pragma warning directives for external headers (diff)
downloadyuzu-248a146ab79b732cd02632f5ecf58d70ba3bce91.tar
yuzu-248a146ab79b732cd02632f5ecf58d70ba3bce91.tar.gz
yuzu-248a146ab79b732cd02632f5ecf58d70ba3bce91.tar.bz2
yuzu-248a146ab79b732cd02632f5ecf58d70ba3bce91.tar.lz
yuzu-248a146ab79b732cd02632f5ecf58d70ba3bce91.tar.xz
yuzu-248a146ab79b732cd02632f5ecf58d70ba3bce91.tar.zst
yuzu-248a146ab79b732cd02632f5ecf58d70ba3bce91.zip
-rw-r--r--src/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a41423895..ed94e5d4e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -45,6 +45,11 @@ if (MSVC)
/Zc:inline
/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
/W3
/we4018 # 'expression': signed/unsigned mismatch