fix unused variables in meson

This commit is contained in:
Jonathan Guzmán 2024-08-13 23:11:02 -06:00
parent abffec28de
commit 6d9a802098
No known key found for this signature in database
GPG Key ID: C6548B8767F616FF
3 changed files with 18 additions and 29 deletions

View File

@ -1,8 +1,5 @@
example1_sources = files(
'main.cpp'
)
example1_sources = files('main.cpp')
example1_args = []
@ -11,10 +8,11 @@ if host_machine.system() == 'windows'
example1_args += ['-D_CRT_SECURE_NO_WARNINGS']
endif
sqlitecpp_demo1_exe = executable('SQLITECPP_sample_demo1',
sqlitecpp_sample1_srcs,
executable(
'SQLITECPP_sample_demo1',
sources: example1_sources,
dependencies: sqlitecpp_dep,
# inherit the default options from sqlitecpp
override_options: sqlitecpp_opts,
cpp_args: example1_args,)
cpp_args: example1_args,
)

View File

@ -1,14 +1,13 @@
example2_srcs = files(
'src/main.cpp'
)
example2_srcs = files('src/main.cpp')
# if running on windows define _CRT_SECURE_NO_WARNINGS
example2_args = []
sqlitecpp_demo2_exe = executable('SQLITECPP_sample_demo2',
sqlitecpp_sample2_srcs,
executable(
'SQLITECPP_sample_demo2',
example2_srcs,
dependencies: sqlitecpp_dep,
# inherit the default options from sqlitecpp
override_options: sqlitecpp_opts,
cpp_args: example2_args)
cpp_args: example2_args,
)

View File

@ -86,14 +86,6 @@ sqlitecpp_test_srcs = files(
)
sqlitecpp_test_args = []
## samples
sqlitecpp_sample1_srcs = files(
'examples/example1/main.cpp',
)
sqlitecpp_sample2_srcs = files(
'examples/example2/src/main.cpp',
)
## using MSVC headers requires c++14, if not will show an error on xstddef as:
## 'auto' return without trailing return type; deduced return types are a C++14 extension