diff options
author | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2021-05-11 16:56:21 +0000 |
---|---|---|
committer | Kjell Ahlstedt <kjellahlstedt@gmail.com> | 2021-05-11 16:56:21 +0000 |
commit | a5a4cbdc2c762a155fc9a33b68e7297b2a0a3e73 (patch) | |
tree | 69751abb6788d0662a11660ee6c644f4bc52409a /examples/meson.build | |
parent | c47657158a0bfddf526e24191c233567ff0b2708 (diff) | |
parent | a5795244b493aa4c12db51fbe316bba738cfe616 (diff) |
Merge branch 'cairomm-1-14' into 'cairomm-1-14'
cairomm/exception.h: Export Cairo::logic_error selectively (cairomm-1-14 branch)
See merge request cairo/cairomm!18
Diffstat (limited to 'examples/meson.build')
-rw-r--r-- | examples/meson.build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/examples/meson.build b/examples/meson.build index adc0e68..bc948b6 100644 --- a/examples/meson.build +++ b/examples/meson.build @@ -13,6 +13,12 @@ examples = [ [['text'], 'user-font', ['user-font.cc']], ] +if is_msvc + ex_disabled_warnings = cpp_compiler.get_supported_arguments('/wd4127') +else + ex_disabled_warnings = [] +endif + foreach ex : examples dir = '' foreach dir_part : ex[0] @@ -25,7 +31,7 @@ foreach ex : examples endforeach executable(ex_name, ex_sources, - cpp_args: '-DCAIROMM_DISABLE_DEPRECATED', + cpp_args: [ '-DCAIROMM_DISABLE_DEPRECATED' ] + ex_disabled_warnings, dependencies: cairomm_own_dep, implicit_include_directories: false, gui_app: false, |