From adb1de7d28fd70a6482e3a4dd4827c6aee413024 Mon Sep 17 00:00:00 2001 From: Jeff Date: Wed, 18 Sep 2024 12:01:06 +1000 Subject: [PATCH] Reduce warning level --- lang/c++/meson.build | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/lang/c++/meson.build b/lang/c++/meson.build index da3cb72067a..6efd2effbac 100644 --- a/lang/c++/meson.build +++ b/lang/c++/meson.build @@ -1,7 +1,7 @@ project('avro-cpp', 'cpp', version: '1.0', default_options: [ 'cpp_std=c++17', - 'warning_level=everything', + 'warning_level=3', 'werror=true' ]) @@ -66,22 +66,16 @@ avro_sources = [ ] # Create shared and static libraries -libavro_shared = shared_library('avrocpp', avro_sources, +libavro = library('avrocpp', avro_sources, include_directories: include_directories('include/avro'), dependencies: [boost_dep, snappy_dep, fmt_dep], version: '@0@.@1@.@2@'.format(avro_version_major, avro_version_minor, avro_version_patch.split('-')[0]), install: true ) -libavro_static = static_library('avrocpp_s', avro_sources, - include_directories: include_directories('include/avro'), - dependencies: [boost_dep, snappy_dep, fmt_dep], - install: true -) - # AvroGenCpp executable avrogencpp_exe = executable('avrogencpp', 'impl/avrogencpp.cc', - link_with: libavro_static, + link_with: libavro, include_directories: include_directories('include/avro'), dependencies: [boost_dep, snappy_dep, fmt_dep], install: true @@ -89,7 +83,7 @@ avrogencpp_exe = executable('avrogencpp', 'impl/avrogencpp.cc', # Precompile test executable precompile_exe = executable('precompile', 'test/precompile.cc', - link_with: libavro_static, + link_with: libavro, include_directories: include_directories('include/avro'), dependencies: [boost_dep, snappy_dep, fmt_dep] ) @@ -139,7 +133,7 @@ foreach test_name : test_list test_exe = executable(test_name, sources: schema_headers + ['test/@0@.cc'.format(test_name)], include_directories: include_directories('include/avro'), - link_with: libavro_shared, + link_with: libavro, dependencies: [boost_dep, snappy_dep,fmt_dep] ) test(test_name, test_exe)