diff options
-rw-r--r-- | lib/urlfilter/meson.build | 2 | ||||
-rw-r--r-- | meson.build | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/urlfilter/meson.build b/lib/urlfilter/meson.build index b017eb5..2591028 100644 --- a/lib/urlfilter/meson.build +++ b/lib/urlfilter/meson.build @@ -10,7 +10,7 @@ dep_urlfilter = declare_dependency( link_with: urlfilter_lib ) -if get_option('testing').enabled() +if dep_gtest.found() test('urlfilter: matcher', executable('urlfilter-matcher', dependencies: [dep_qt5, dep_gtest, dep_urlfilter], sources: ['test/matcher.cpp']), workdir: meson.current_source_dir() / 'test' diff --git a/meson.build b/meson.build index 4092f5e..3894ac1 100644 --- a/meson.build +++ b/meson.build @@ -71,7 +71,7 @@ optional_deps += declare_dependency(compile_args: '-DPLASMA', ) endif -dep_gtest = dependency('gtest', required: get_option('testing')) +dep_gtest = dependency('gtest', required: false, disabler: true) # Generate config header include = include_directories('include') |