summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2018-12-03 13:06:36 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2018-12-03 13:06:36 +0300
commit7172b40dbb6f41e2dbac3c4d46922d2088a04c52 (patch)
treece8fad68fb1b23085054a23fe912a343625c9854
parent8d01f3b07a9f14b8ea4d9c570f205c14092f9876 (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 481ab0e..465627e 100644
--- a/build/root.build
+++ b/build/root.build
@@ -5,6 +5,12 @@ using cxx
hxx{*}: extension = h
cxx{*}: extension = cpp
+if ($cxx.class == 'msvc')
+{
+ cxx.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS
+ cxx.coptions += /wd4251 /wd4275 /wd4800
+}
+
# The test target for cross-testing (running tests under Wine, etc).
#
test.target = $cxx.target