summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@outlook.com>2021-02-09 14:01:13 +0100
committerTiger Wang <ziwei.tiger@outlook.com>2021-02-10 11:30:32 +0100
commit86cfb3821150d24cd60e5501720779696379643a (patch)
treeb84026063826f4d21e4c9cfe0a0b3f9b5a255c3b /SetFlags.cmake
parentCompositeChat: use variants (diff)
downloadcuberite-86cfb3821150d24cd60e5501720779696379643a.tar
cuberite-86cfb3821150d24cd60e5501720779696379643a.tar.gz
cuberite-86cfb3821150d24cd60e5501720779696379643a.tar.bz2
cuberite-86cfb3821150d24cd60e5501720779696379643a.tar.lz
cuberite-86cfb3821150d24cd60e5501720779696379643a.tar.xz
cuberite-86cfb3821150d24cd60e5501720779696379643a.tar.zst
cuberite-86cfb3821150d24cd60e5501720779696379643a.zip
Diffstat (limited to 'SetFlags.cmake')
-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()