1
0
Fork 0
mirror of https://github.com/Neargye/magic_enum.git synced 2026-01-10 23:44:29 +00:00

Replace test option with not building tests by default

This commit is contained in:
Frankie Robertson 2025-10-02 13:18:41 +03:00
parent ec5734e491
commit 5a136ba12f
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
subdir('test')

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],
)