chaincodelabs / libmultiprocess

C++ library and code generator making it easy to call functions and reference objects in different processes
MIT License
27 stars 20 forks source link

pkgconfig: Use @CMAKE_INSTALL_LIBDIR@ variable #90

Closed ryanofsky closed 8 months ago

ryanofsky commented 8 months ago

Use @CMAKE_INSTALL_LIBDIR@ variable instead of hardcoding "lib" as the libdir. This is needed after 54bd57fb3b064c7f3d556b015e8f64fd8d234c19 (https://github.com/chaincodelabs/libmultiprocess/pull/79) which changed the installation to sometimes install to "lib64".

This fixes error "ld: cannot find -lmultiprocess: No such file or directory" in Bitcoin Core.

Also replace hardcoded "include" with @CMAKE_INSTALL_INCLUDEDIR@ for consistency.