diff options
| -rw-r--r-- | CMakeLists.txt | 2 | ||||
| -rw-r--r-- | src/CMakeLists.txt | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 30a3c939e..3d03bbf94 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -255,7 +255,7 @@ endif() | |||
| 255 | # boost asio's concept usage doesn't play nicely with some compilers yet. | 255 | # boost asio's concept usage doesn't play nicely with some compilers yet. |
| 256 | add_definitions(-DBOOST_ASIO_DISABLE_CONCEPTS) | 256 | add_definitions(-DBOOST_ASIO_DISABLE_CONCEPTS) |
| 257 | if (MSVC) | 257 | if (MSVC) |
| 258 | add_compile_options($<$<COMPILE_LANGUAGE:CXX>:/std:c++latest>) | 258 | add_compile_options($<$<COMPILE_LANGUAGE:CXX>:/std:c++20>) |
| 259 | 259 | ||
| 260 | # boost still makes use of deprecated result_of. | 260 | # boost still makes use of deprecated result_of. |
| 261 | add_definitions(-D_HAS_DEPRECATED_RESULT_OF) | 261 | add_definitions(-D_HAS_DEPRECATED_RESULT_OF) |
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 | ||