summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott D Phillips <scott.d.phillips@intel.com>2016-10-26 22:38:07 -0700
committerTim-Philipp Müller <tim@centricular.com>2016-11-11 16:14:55 +0000
commit03286b7b7ec1947c0117047c229c09917f575eb5 (patch)
tree2e0a4da7031c089c0e34e6b5f269e83133a660cf
parentfcb938caae3d979406ca9caaf1b67d693b327ac2 (diff)
meson: don't add_global_arguments when being built as a subproject
https://bugzilla.gnome.org/show_bug.cgi?id=773568
-rw-r--r--meson.build2
1 files changed, 1 insertions, 1 deletions
diff --git a/meson.build b/meson.build
index d0de27dec..572227b0c 100644
--- a/meson.build
+++ b/meson.build
@@ -41,7 +41,7 @@ endif
# If a warning is completely useless and spammy, use '/wdXXXX' to suppress it
# If a warning is harmless but hard to fix, use '/woXXXX' so it's shown once
# NOTE: Only add warnings here if you are sure they're spurious
-if cc.get_id() == 'msvc'
+if cc.get_id() == 'msvc' and not meson.is_subproject()
add_global_arguments('/wd4018', '/wd4244', '/wd4996', language : 'c')
endif