meson: don't add_global_arguments when being built as a subproject

https://bugzilla.gnome.org/show_bug.cgi?id=773568
This commit is contained in:
Scott D Phillips 2016-10-26 22:38:07 -07:00 committed by Tim-Philipp Müller
parent fcb938caae
commit 03286b7b7e

View file

@ -41,7 +41,7 @@ endif
# If a warning is completely useless and spammy, use '/wdXXXX' to suppress it # 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 # 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 # 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') add_global_arguments('/wd4018', '/wd4244', '/wd4996', language : 'c')
endif endif