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.
When we don't find RTE_SDK definition, originally directly use
message(FATAL_ERROR)
to throw an error and exit (BTW, originallymessage(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.