-
-
Notifications
You must be signed in to change notification settings - Fork 496
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg-config file #926
Comments
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: |
I found this :
Some thinking that the libdir needs tweaking as well:
Anyway there might be hope here. |
Well, after a couple of hours, I've discovered that cmake doesn't have good support for this at all. Essentially we cannot automatically generate the transitive dependencies using "modern" cmake, because it doesn't understand how to expand targets like Thread::threads or whatever, when doing configure_file(). With a variety of optional dependencies, its sufficiently problematic that I don't want to do it. Meson does have a pkg-config generator. I'm leaning more and more towards meson. |
I'm going to leave this open for now, but with a help-wanted label. If someone has some brilliant solution to this problem, I'd love to hear it. The reality is that pkg-config is not very portable and has a bunch of problems. Cmake also has problems, but it has fewer of them then pkg-config. |
NNG & Platform details.
GNU Linux
Expected Behavior
The build system install a pkg-config
.pc
file somewhereActual Behavior
No
.pc
is installedSteps to Reproduce
The text was updated successfully, but these errors were encountered: