mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-07 03:06:05 -04:00
fix unused variables in meson
This commit is contained in:
parent
abffec28de
commit
6d9a802098
@ -1,8 +1,5 @@
|
|||||||
|
|
||||||
|
example1_sources = files('main.cpp')
|
||||||
example1_sources = files(
|
|
||||||
'main.cpp'
|
|
||||||
)
|
|
||||||
|
|
||||||
example1_args = []
|
example1_args = []
|
||||||
|
|
||||||
@ -11,10 +8,11 @@ if host_machine.system() == 'windows'
|
|||||||
example1_args += ['-D_CRT_SECURE_NO_WARNINGS']
|
example1_args += ['-D_CRT_SECURE_NO_WARNINGS']
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
executable(
|
||||||
sqlitecpp_demo1_exe = executable('SQLITECPP_sample_demo1',
|
'SQLITECPP_sample_demo1',
|
||||||
sqlitecpp_sample1_srcs,
|
sources: example1_sources,
|
||||||
dependencies: sqlitecpp_dep,
|
dependencies: sqlitecpp_dep,
|
||||||
# inherit the default options from sqlitecpp
|
# inherit the default options from sqlitecpp
|
||||||
override_options: sqlitecpp_opts,
|
override_options: sqlitecpp_opts,
|
||||||
cpp_args: example1_args,)
|
cpp_args: example1_args,
|
||||||
|
)
|
||||||
|
@ -1,14 +1,13 @@
|
|||||||
example2_srcs = files(
|
example2_srcs = files('src/main.cpp')
|
||||||
'src/main.cpp'
|
|
||||||
)
|
|
||||||
|
|
||||||
# if running on windows define _CRT_SECURE_NO_WARNINGS
|
# if running on windows define _CRT_SECURE_NO_WARNINGS
|
||||||
example2_args = []
|
example2_args = []
|
||||||
|
|
||||||
|
executable(
|
||||||
sqlitecpp_demo2_exe = executable('SQLITECPP_sample_demo2',
|
'SQLITECPP_sample_demo2',
|
||||||
sqlitecpp_sample2_srcs,
|
example2_srcs,
|
||||||
dependencies: sqlitecpp_dep,
|
dependencies: sqlitecpp_dep,
|
||||||
# inherit the default options from sqlitecpp
|
# inherit the default options from sqlitecpp
|
||||||
override_options: sqlitecpp_opts,
|
override_options: sqlitecpp_opts,
|
||||||
cpp_args: example2_args)
|
cpp_args: example2_args,
|
||||||
|
)
|
||||||
|
@ -86,14 +86,6 @@ sqlitecpp_test_srcs = files(
|
|||||||
)
|
)
|
||||||
sqlitecpp_test_args = []
|
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:
|
## 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
|
## 'auto' return without trailing return type; deduced return types are a C++14 extension
|
||||||
|
Loading…
x
Reference in New Issue
Block a user