erpc-io / eRPC

Efficient RPCs for datacenter networks
https://erpc.io/
Other
835 stars 137 forks source link

feat: try to use pkg-config for find DPDK when RTE_SDK not defined #112

Closed cxz66666 closed 1 month ago

cxz66666 commented 2 months ago

When we don't find RTE_SDK definition, originally directly use message(FATAL_ERROR) to throw an error and exit (BTW, originally message(FATAL) maybe a typo).

But for those users who not build DPDK from source code or don't setup RTE_SDK environment variables, there is not backup policy to build eRPC.

PKG-CONFIG is a widely used function to manage dependency for includes and libs, and it also can be easily used. So It maybe helpful to add pkg-config as a backup policy.

cxz66666 commented 1 month ago

ping @anujkaliaiitd . Any update for this PR?