aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-12-03 12:28:56 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-12-03 12:28:56 +0300
commitcd5c1c00e8edadb5f1cc2747014b71971902325f (patch)
treedf69d3ac065c8e84e480f42d876157113903140b
parent52722af26aed344341f7340044a85dee34fce0f9 (diff)
Suppress MSVC warnings at project level
-rw-r--r--build/root.build6
1 files changed, 6 insertions, 0 deletions
diff --git a/build/root.build b/build/root.build
index 7e6b370..9340c82 100644
--- a/build/root.build
+++ b/build/root.build
@@ -16,6 +16,12 @@ cxx{*}: extension = cxx
#
h{*}: extension = h
+if ($cxx.class == 'msvc')
+{
+ cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
+ cxx.coptions += /wd4251 /wd4275 /wd4800
+}
+
cxx.poptions =+ "-I$out_root" "-I$src_root"
# Load the cli module but only if it's available. This way a distribution