einpoklum
einpoklum

Reputation: 132128

What CMake package am I suppose to find for the tirpc library?

I'm trying to build some code which uses RPC. It includes <rpc/rpc.h> and similar files, which in fact are located under /usr/include/tirpc, and requires functions such as xdr_u_int, fast_rpc_call, clntudp_create etc. - which are satisfied if I link with -ltirpc.

Obviously, I need to depend on some kind of rpc or tirpc related target; and I'm assuming I need to find_package(some_rpc_package_here). But what is the package I need to find? find_package(tirpc) fails, even though pkgconfig knows about the library:

$ pkg-config --libs libtirpc
-ltirpc
$ pkg-config --cflags libtirpc
-I/usr/include/tirpc

Upvotes: 0

Views: 16

Answers (0)

Related Questions