test: fix dependency on pcapng

The unit test code should depend on the pcapng library.

Fixes: 7a944656b3 ("test/pcapng: test pcapng library")

Signed-off-by: David Marchand <david.marchand@redhat.com>
This commit is contained in:
David Marchand 2021-11-08 11:09:19 +01:00
parent d6024c0a67
commit 6f01a3ca5c

View File

@ -413,7 +413,10 @@ endif
if dpdk_conf.has('RTE_HAS_LIBPCAP')
ext_deps += pcap_dep
test_sources += 'test_pcapng.c'
if dpdk_conf.has('RTE_LIB_PCAPNG')
test_deps += 'pcapng'
test_sources += 'test_pcapng.c'
endif
endif
if dpdk_conf.has('RTE_LIB_POWER')