1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-09 23:34:23 +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:
Frankie Robertson 2025-10-08 21:29:29 +03:00 committed by GitHub
parent ec5734e491
commit 83ab7f4f57
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 2 additions and 10 deletions

View file

@ -27,6 +27,4 @@ pkg.generate(
extra_cflags: magic_enum_args,
)
if get_option('test')
subdir('test')
endif

View file

@ -1,10 +1,3 @@
option(
'test',
type : 'boolean',
value : true,
description : 'Build and run tests'
)
option(
'hash',
type : 'boolean',

View file

@ -10,6 +10,7 @@ foreach test_name, test_src : test_files
test_name.underscorify(),
test_src,
build_by_default: false,
dependencies: [magic_enum_dep, catch2_dep],
)