aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-08-16 16:20:17 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-08-16 16:20:17 +0200
commit112c57a03bb76413067e4856a6c6492c0a1bbfa5 (patch)
tree9b61864a493fa647ad6da4c6199ae448da8ade93
parentc44ce081d653144374a7bcfc670110844509cf17 (diff)
Disable VC "unknown pragma" warning
-rw-r--r--bpkg/buildfile5
1 files changed, 5 insertions, 0 deletions
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