-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Install pkgconfig files from CMake installation #215
Comments
Well regarding pkgconfig, I'm not familar with it in the slightest so can't add input to that. However this notification reminded me that I was working on getting the CMakeLists to be target based a couple months back. |
With GNU make, |
I don't mind keeping the |
I think it would be possible to somehow do that. I'm just kinda busy last several days. I'll probably message you one more time once I resolve simultaneous installation of static and dynamic library. |
No worries. Just reopen this issue. :) |
We were discussing this with Paul on gerrit here but to sum it up.
Right now, all popular Linux distributions package re2 from GNU make build which installs pkgconfig
pc
files. However this is not an ideal situation for people who use CMake in their projects. They can't dofind_package(re2)
in their project out of the box. The usual approach then is to write your own finder that will use pkgconfig to generate CMake targets but it's much better if projects provide their own. CMake build system in RE2 already generate all the necessary files for doing justfind_package(re2)
but it does not install pkgconfig files. That way, package maintainers for Fedora, Ubuntu, Arch, ... can't really use CMake and not break existing packages which rely on pkgconfig. I have provided patch for that but Paul asked me to write this issue to start the discussion regarding this matter.There is also another thing which is that Red Hat based distributions should have 64-bit libraries installed in /usr/lib64 but through CMake, RE2 installs itself into /usr/lib. Therefore we also need GNUInstallDirs which work just find even on Windows and macOS.
cc @SuperWig
The text was updated successfully, but these errors were encountered: