nng icon indicating copy to clipboard operation
nng copied to clipboard

pkg-config file

Open amirouche opened this issue 6 years ago • 8 comments

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

amirouche avatar Apr 16 '19 15:04 amirouche

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.

gdamore avatar Apr 16 '19 15:04 gdamore

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?

xfbs avatar Aug 01 '19 09:08 xfbs

We created a pc file internally for easy development.

xueruini avatar Aug 02 '19 02:08 xueruini

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.

gdamore avatar Dec 28 '20 06:12 gdamore

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

tlsa avatar Jan 09 '24 11:01 tlsa