]> git.droids-corp.org - dpdk.git/blobdiff - examples/l2fwd-keepalive/meson.build
event/dlb2: add v2.5 create LDB queue
[dpdk.git] / examples / l2fwd-keepalive / meson.build
index 2dffffaaa054791881631ca2c080a689f4c08077..ed49c612387980c5fcfc2e50394be93588ffcffa 100644 (file)
@@ -6,9 +6,16 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-ext_deps += cc.find_library('rt')
-deps += 'timer'
 allow_experimental_apis = true
+librt = cc.find_library('rt', required: false)
+if not librt.found()
+    build = false
+    subdir_done()
+endif
+
+ext_deps += librt
+deps += 'timer'
 sources = files(
-       'main.c', 'shm.c'
+        'main.c',
+        'shm.c',
 )