]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
cache_gc: build without sysrepo integration
authorAleš <ales.mrazek@nic.cz>
Tue, 18 Aug 2020 08:52:54 +0000 (10:52 +0200)
committerAleš <ales.mrazek@nic.cz>
Tue, 18 Aug 2020 08:52:54 +0000 (10:52 +0200)
utils/cache_gc/meson.build
utils/meson.build

index aed68a954738cfa186a8e9439c334359d6d307a0..fb921d4f2b841945beb0623306a4dd9a5e886d19 100644 (file)
@@ -7,13 +7,16 @@ cache_gc_src = files([
   'kr_cache_gc.c',
   'main.c',
 ])
+if build_sysrepo
+  cache_gc_src += sysrepo_common_src
+endif
+
 c_src_lint += cache_gc_src
 
 if build_utils
   cache_gc = executable(
     'kres-cache-gc',
     cache_gc_src,
-    sysrepo_common_src,
     dependencies: [
       kresconfig_dep,
       contrib_dep,
index 6557cdf7d2172b9605570448c7f5a28eed435d63..0b932d6378416c61b50391355609a67c8d6cf6b9 100644 (file)
@@ -5,7 +5,5 @@ build_utils = get_option('utils') != 'disabled'
 
 subdir('watcher')
 subdir('client')
-if build_sysrepo
-  subdir('cache_gc')
-endif
+subdir('cache_gc')
 subdir('upgrade')