erpc-io / eRPC

Efficient RPCs for datacenter networks
Other
861 stars 140 forks source link

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

Closed cxz66666 closed 6 months ago

cxz66666 commented 7 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 6 months ago

ping @anujkaliaiitd . Any update for this PR?