From 7172b40dbb6f41e2dbac3c4d46922d2088a04c52 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 3 Dec 2018 13:06:36 +0300 Subject: Suppress MSVC warnings at project level --- build/root.build | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.1