diff --git a/Pcap++/CMakeLists.txt b/Pcap++/CMakeLists.txt index dd9c6cb2b3..34c4d93254 100644 --- a/Pcap++/CMakeLists.txt +++ b/Pcap++/CMakeLists.txt @@ -37,11 +37,17 @@ if(PCAPPP_USE_DPDK) public_headers header/DpdkDevice.h header/DpdkDeviceList.h - $<$:header/KniDevice.h> - $<$:header/KniDeviceList.h> header/MBufRawPacket.h) endif() +if(PCAPPP_USE_DPDK_KNI) + list( + APPEND + public_headers + header/KniDevice.h + header/KniDeviceList.h) +endif() + if(PCAPPP_USE_PF_RING) list( APPEND