mirror of
https://github.com/Neargye/magic_enum.git
synced 2026-01-08 23:24:20 +00:00
Replace test option with not building tests by default (#430)
Co-authored-by: Frankie Robertson <frankie@robertson.name>
This commit is contained in:
parent
ec5734e491
commit
83ab7f4f57
3 changed files with 2 additions and 10 deletions
|
|
@ -27,6 +27,4 @@ pkg.generate(
|
||||||
extra_cflags: magic_enum_args,
|
extra_cflags: magic_enum_args,
|
||||||
)
|
)
|
||||||
|
|
||||||
if get_option('test')
|
subdir('test')
|
||||||
subdir('test')
|
|
||||||
endif
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,3 @@
|
||||||
option(
|
|
||||||
'test',
|
|
||||||
type : 'boolean',
|
|
||||||
value : true,
|
|
||||||
description : 'Build and run tests'
|
|
||||||
)
|
|
||||||
|
|
||||||
option(
|
option(
|
||||||
'hash',
|
'hash',
|
||||||
type : 'boolean',
|
type : 'boolean',
|
||||||
|
|
|
||||||
|
|
@ -10,6 +10,7 @@ foreach test_name, test_src : test_files
|
||||||
test_name.underscorify(),
|
test_name.underscorify(),
|
||||||
test_src,
|
test_src,
|
||||||
|
|
||||||
|
build_by_default: false,
|
||||||
dependencies: [magic_enum_dep, catch2_dep],
|
dependencies: [magic_enum_dep, catch2_dep],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue