[libgd/gd.msvc: 7/8] Meson: Force-include msvc_recommended_pragmas.h as needed
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgd/gd.msvc: 7/8] Meson: Force-include msvc_recommended_pragmas.h as needed
- Date: Wed, 11 Aug 2021 08:53:22 +0000 (UTC)
commit c92b78ccc110fd98e47d835ce29ce200ec2345d4
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Wed Aug 11 16:42:49 2021 +0800
Meson: Force-include msvc_recommended_pragmas.h as needed
On Visual Studio-style builds, we can check for warnings that we really want to
look out for and silence the ones that we can really not worry about. This
header comes with GLib, which we are already using, anyways.
libgd/meson.build | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libgd/meson.build b/libgd/meson.build
index 2c58cf4..86cc0e8 100644
--- a/libgd/meson.build
+++ b/libgd/meson.build
@@ -131,8 +131,11 @@ endif
# --------- Building -----------
-if (cc.get_id() == 'msvc' or cc.get_id() == 'clang-cl') and get_option('msvc-export-symbols')
- c_args += '-DMSVC_EXPORT_DLL'
+if cc.get_id() == 'msvc' or cc.get_id() == 'clang-cl'
+ c_args += '-FImsvc_recommended_pragmas.h'
+ if get_option('msvc-export-symbols')
+ c_args += '-DMSVC_EXPORT_DLL'
+ endif
endif
static = get_option('static')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]