From 16e30d3c28804ac3d740d81eb6405a6d9661ea56 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 3 Dec 2018 13:00:00 +0300 Subject: Suppress MSVC warnings at project level --- build/root.build | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'build') diff --git a/build/root.build b/build/root.build index 6085605..2ef123c 100644 --- a/build/root.build +++ b/build/root.build @@ -22,3 +22,9 @@ using cxx hxx{*}: extension = hpp cxx{*}: extension = cpp + +if ($c.class == 'msvc') +{ + cc.poptions += -D_CRT_SECURE_NO_WARNINGS -D_SCL_SECURE_NO_WARNINGS + cc.coptions += /wd4251 /wd4275 /wd4800 +} -- cgit v1.1