summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--SetFlags.cmake11
1 files changed, 10 insertions, 1 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index 2900418ea..4ef8ecd2a 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -104,7 +104,16 @@ endfunction()
function(set_exe_flags TARGET)
if (MSVC)
- # TODO: MSVC level 4, warnings as errors
+ # TODO: Warnings as errors
+ target_compile_options(
+ ${TARGET} PRIVATE
+
+ # Warnings level 4:
+ /W4
+
+ # Excessive amount of logspam (Unreferenced formal parameter), disable for now:
+ /wd4100
+ )
return ()
endif()