summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar liamwhite2023-06-07 14:04:25 -0400
committerGravatar GitHub2023-06-07 14:04:25 -0400
commit86cbd867d2d9328a495d8a601370499121b92ee5 (patch)
tree18f665594ac410cbfcbedf38232ee5262cabec80 /src
parentMerge pull request #10635 from mrcmunir/l4t-tx1-nvidia (diff)
parentCMakeLists: Force C++20 on MSVC due to conflicts with C++23 modules (diff)
downloadyuzu-86cbd867d2d9328a495d8a601370499121b92ee5.tar.gz
yuzu-86cbd867d2d9328a495d8a601370499121b92ee5.tar.xz
yuzu-86cbd867d2d9328a495d8a601370499121b92ee5.zip
Merge pull request #10655 from Morph1984/msvc-cxx20
CMakeLists: Force C++20 on MSVC due to conflicts with C++23 modules
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 55b113297..0696201df 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -43,7 +43,7 @@ if (MSVC)
43 /Zo 43 /Zo
44 /permissive- 44 /permissive-
45 /EHsc 45 /EHsc
46 /std:c++latest 46 /std:c++20
47 /utf-8 47 /utf-8
48 /volatile:iso 48 /volatile:iso
49 /Zc:externConstexpr 49 /Zc:externConstexpr
@@ -51,8 +51,10 @@ if (MSVC)
51 /Zc:throwingNew 51 /Zc:throwingNew
52 /GT 52 /GT
53 53
54 # Modules
55 /experimental:module- # Disable module support explicitly due to conflicts with precompiled headers
56
54 # External headers diagnostics 57 # External headers diagnostics
55 /experimental:external # Enables the external headers options. This option isn't required in Visual Studio 2019 version 16.10 and later
56 /external:anglebrackets # Treats all headers included by #include <header>, where the header file is enclosed in angle brackets (< >), as external headers 58 /external:anglebrackets # Treats all headers included by #include <header>, where the header file is enclosed in angle brackets (< >), as external headers
57 /external:W0 # Sets the default warning level to 0 for external headers, effectively turning off warnings for external headers 59 /external:W0 # Sets the default warning level to 0 for external headers, effectively turning off warnings for external headers
58 60