From: Scott D Phillips Date: Thu, 27 Oct 2016 05:37:34 +0000 (-0700) Subject: meson: don't add_global_arguments when being built as a subproject X-Git-Tag: 1.19.3~509^2~2429 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5a7c3429225a42982834f77d91e0ccb7d8879242;p=platform%2Fupstream%2Fgstreamer.git meson: don't add_global_arguments when being built as a subproject https://bugzilla.gnome.org/show_bug.cgi?id=773568 --- diff --git a/meson.build b/meson.build index 87aeb34..f7eee44 100644 --- a/meson.build +++ b/meson.build @@ -29,7 +29,9 @@ if cc.get_id() == 'msvc' # 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 - add_global_arguments('/wd4018', '/wd4244', '/wd4996', language : 'c') + if not meson.is_subproject() + add_global_arguments('/wd4018', '/wd4244', '/wd4996', language : 'c') + endif # Disable SAFESEH with MSVC for plugins and libs that use external deps that # are built with MinGW noseh_link_args = ['/SAFESEH:NO']