diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/CMakeLists.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d7f68618c..d2ca4904a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt | |||
| @@ -21,7 +21,7 @@ if (MSVC) | |||
| 21 | # Avoid windows.h from including some usually unused libs like winsocks.h, since this might cause some redefinition errors. | 21 | # Avoid windows.h from including some usually unused libs like winsocks.h, since this might cause some redefinition errors. |
| 22 | add_definitions(-DWIN32_LEAN_AND_MEAN) | 22 | add_definitions(-DWIN32_LEAN_AND_MEAN) |
| 23 | 23 | ||
| 24 | # Ensure that projects build with Unicode support. | 24 | # Ensure that projects are built with Unicode support. |
| 25 | add_definitions(-DUNICODE -D_UNICODE) | 25 | add_definitions(-DUNICODE -D_UNICODE) |
| 26 | 26 | ||
| 27 | # /W4 - Level 4 warnings | 27 | # /W4 - Level 4 warnings |
| @@ -54,11 +54,11 @@ if (MSVC) | |||
| 54 | /GT | 54 | /GT |
| 55 | 55 | ||
| 56 | # Modules | 56 | # Modules |
| 57 | /experimental:module- # Disable module support explicitly due to conflicts with precompiled headers | 57 | /experimental:module- # Explicitly disable module support due to conflicts with precompiled headers. |
| 58 | 58 | ||
| 59 | # External headers diagnostics | 59 | # External headers diagnostics |
| 60 | /external:anglebrackets # Treats all headers included by #include <header>, where the header file is enclosed in angle brackets (< >), as external headers | 60 | /external:anglebrackets # Treats all headers included by #include <header>, where the header file is enclosed in angle brackets (< >), as external headers |
| 61 | /external:W0 # Sets the default warning level to 0 for external headers, effectively turning off warnings for external headers | 61 | /external:W0 # Sets the default warning level to 0 for external headers, effectively disabling warnings for them. |
| 62 | 62 | ||
| 63 | # Warnings | 63 | # Warnings |
| 64 | /W4 | 64 | /W4 |