build: disable Test interface in base manager if building without tests

There is no real need for this interface if tests are not being built.
This commit is contained in:
Aleksander Morgado
2022-10-27 22:08:37 +00:00
parent 7ea2452b1e
commit 634f6cbcbc
6 changed files with 65 additions and 20 deletions

View File

@@ -90,6 +90,7 @@ cc_args = cc.get_supported_arguments([
# tests are enabled by default
enable_tests = get_option('tests')
config_h.set('WITH_TESTS', enable_tests)
# strict flags to use in debug builds
if get_option('buildtype').contains('debug')