examples/power: fix FreeBSD meson lib dependency
[dpdk.git] / examples / l3fwd-power / meson.build
index b38a7a0..d5a3d4b 100644 (file)
@@ -6,9 +6,11 @@
 # To build this example as a standalone application with an already-installed
 # DPDK instance, use 'make'
 
-if not is_linux
-       build = false
+if not dpdk_conf.has('RTE_LIBRTE_POWER')
+        build = false
+        subdir_done()
 endif
+
 allow_experimental_apis = true
 deps += ['power', 'timer', 'lpm', 'hash', 'metrics']
 sources = files(