Skip to content

Commit

Permalink
Reduce warning level
Browse files Browse the repository at this point in the history
  • Loading branch information
hexagonhill committed Sep 18, 2024
1 parent b6c1dfe commit adb1de7
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions lang/c++/meson.build
Original file line number Diff line number Diff line change
@@ -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'
])

Expand Down Expand Up @@ -66,30 +66,24 @@ 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
)

# 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]
)
Expand Down Expand Up @@ -139,7 +133,7 @@ foreach test_name : test_list
test_exe = executable(test_name,
sources: schema_headers + ['test/@[email protected]'.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)
Expand Down

0 comments on commit adb1de7

Please sign in to comment.