Open eclipseo opened 3 years ago
It might be specific to my build setup: I use RPM to build a package and it detects the cmake folder automatically in lib64/cmake and thus adds an automatic Provides: cmake(nameofthelibrary) to be called from other packages depending on it. But it does not work in /usr/share. This is pretty distribution specific so I can keep my patch downstream and close this PR if it's ok.
Thanks for the background. It looks like there isn't a canonical location for these though the cmake docs use lib/ in their current examples [1]. Out of curiosity do any of the other forms work like changing sjpeg/cmake to cmake/sjpeg under /usr/share?
I've tested cmake/sjpeg under /usr/share and it works. I don't know the list or all working pattern, nor how they are detected by RPM.
Thanks for trying it out. I'll let Pascal comment, but staying with /usr/share is fine to me.
thanks for trying both solutions. If they are both working and allowed, let's just keep it as is, to minimize disruption!
Current location is preventing me to detect it correctly.