From 112c57a03bb76413067e4856a6c6492c0a1bbfa5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 16 Aug 2016 16:20:17 +0200 Subject: Disable VC "unknown pragma" warning --- bpkg/buildfile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bpkg/buildfile') diff --git a/bpkg/buildfile b/bpkg/buildfile index 2ed3035..748147c 100644 --- a/bpkg/buildfile +++ b/bpkg/buildfile @@ -54,6 +54,11 @@ exe{bpkg}: \ {hxx }{ wrapper-traits } \ $libs +# Disable VC "unknown pragma" warning. +# +if ($cxx.id == "msvc") + cxx.coptions += /wd4068 + # Load the cli module but only if it's available. This way a distribution # that includes pre-generated files can be built without installing cli. # This is also the reason why above we explicitly spelled out individual -- cgit v1.1