diff options
author | Chun-wei Fan <fanchunwei@src.gnome.org> | 2021-08-11 16:42:49 +0800 |
---|---|---|
committer | Chun-wei Fan <fanchunwei@src.gnome.org> | 2021-08-11 16:45:37 +0800 |
commit | c92b78ccc110fd98e47d835ce29ce200ec2345d4 (patch) | |
tree | aac09b852ff7c88506e1a19365e275389535c1ca | |
parent | 9abc3dcc97709626d2964ef820661cad08fdc991 (diff) | |
download | libgd-c92b78ccc110fd98e47d835ce29ce200ec2345d4.tar.gz |
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.
-rw-r--r-- | libgd/meson.build | 7 |
1 files 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') |