diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2017-11-28 17:24:37 +0800 |
---|---|---|
committer | Tomas Popela <tpopela@redhat.com> | 2018-04-11 12:39:19 +0200 |
commit | 11094baf76b65344decd8369850b68bfc7dc5b90 (patch) | |
tree | f9d72f949e7f5461d7ad1c29e9aa4d3221fb11a4 | |
parent | 6aa3cf7eaa7b92dda7f09bf595c0edc7ec37f427 (diff) | |
download | libsoup-11094baf76b65344decd8369850b68bfc7dc5b90.tar.gz |
meson: Force-include msvc_recommended_pragms.h on Visual Studio
Like the Visual Studio projects and the rest of the GTK+ stack, include
this header that comes with GLib so that we can silence warnings that
don't really matter, as well as detecting possible problems in the code
by making the warnimgs that should raise concern to become errors.
-rw-r--r-- | meson.build | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build index c9f21913..e667efa7 100644 --- a/meson.build +++ b/meson.build @@ -20,6 +20,10 @@ soversion = '0' host_system = host_machine.system() +if cc.get_id() == 'msvc' + add_project_arguments('/FImsvc_recommended_pragmas.h', language : 'c') +endif + glib_dep = [dependency('glib-2.0', version : '>=2.38'), dependency('gobject-2.0', version : '>=2.38'), dependency('gio-2.0', version : '>=2.38')] |