diff options
| -rw-r--r-- | src/CMakeLists.txt | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index d7f68618c..5727b6f0a 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 |
| @@ -69,7 +69,7 @@ if (MSVC) | |||
| 69 | /we4265 # 'class': class has virtual functions, but destructor is not virtual | 69 | /we4265 # 'class': class has virtual functions, but destructor is not virtual |
| 70 | /we4388 # 'expression': signed/unsigned mismatch | 70 | /we4388 # 'expression': signed/unsigned mismatch |
| 71 | /we4389 # 'operator': signed/unsigned mismatch | 71 | /we4389 # 'operator': signed/unsigned mismatch |
| 72 | /we4456 # Declaration of 'identifier' hides previous local declaration | 72 | /we4456 # Declaration of 'identifier' hides a previous local declaration |
| 73 | /we4457 # Declaration of 'identifier' hides function parameter | 73 | /we4457 # Declaration of 'identifier' hides function parameter |
| 74 | /we4458 # Declaration of 'identifier' hides class member | 74 | /we4458 # Declaration of 'identifier' hides class member |
| 75 | /we4459 # Declaration of 'identifier' hides global declaration | 75 | /we4459 # Declaration of 'identifier' hides global declaration |
| @@ -84,7 +84,7 @@ if (MSVC) | |||
| 84 | 84 | ||
| 85 | /wd4100 # 'identifier': unreferenced formal parameter | 85 | /wd4100 # 'identifier': unreferenced formal parameter |
| 86 | /wd4324 # 'struct_name': structure was padded due to __declspec(align()) | 86 | /wd4324 # 'struct_name': structure was padded due to __declspec(align()) |
| 87 | /wd4201 # nonstandard extension used : nameless struct/union | 87 | /wd4201 # nonstandard extension used: nameless struct/union |
| 88 | /wd4702 # unreachable code (when used with LTO) | 88 | /wd4702 # unreachable code (when used with LTO) |
| 89 | ) | 89 | ) |
| 90 | 90 | ||