[libsoup/wip/meson: 63/75] meson: Force-include msvc_recommended_pragms.h on Visual Studio
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/wip/meson: 63/75] meson: Force-include msvc_recommended_pragms.h on Visual Studio
- Date: Mon, 12 Feb 2018 10:46:17 +0000 (UTC)
commit 65edb807521d61f80d461b3b4933cd4860d7098e
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Tue Nov 28 17:24:37 2017 +0800
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.
meson.build | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/meson.build b/meson.build
index c9f2191..e667efa 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')]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]