nng
nng copied to clipboard
pkg-config file
NNG & Platform details.
GNU Linux
Expected Behavior
The build system install a pkg-config .pc file somewhere
Actual Behavior
No .pc is installed
Steps to Reproduce
$ mkdir build
$ cd build
$ cmake -G Ninja ..
$ ninja
$ ninja test
$ ninja install
I switched to CMake a while ago. I haven't had a chance to reinvestigate pkg-config, which needs to be populated with the specifics of where the package is installed.
A pkg-config file would be pretty useful for me too. Do you want me to pop one in and send you a pull request?
We created a pc file internally for easy development.
Its funny that grousing around I couldn't find any standard way to set this up from cmake. How disappointing.
It's not sufficient to just record the location of the nng library and header tree -- you also need to record dependencies if the installation was static.
Of course, if you're using a static library, you probably should just download the library yourself in your own project tree, rather than relying upon a system installation -- I'm assuming that a system installation is more useful with shared libraries.
I was going to request this, but found this existing issue already here. Can anything be done about it?
I just found this: https://discourse.cmake.org/t/how-to-generate-pc-pkg-config-file-supporting-prefix-of-the-cmake-install/4109/9