Hi Peter, thanks for acknowledging the bug.

Feel free to have a look here for a working example:


https://anonscm.debian.org/cgit/debian-science/packages/clblas.git/tree/debian

I have also provided an autopkgtest for building the examples to
verify that the find modules was installed appropriately. You may
also want to check clfft, arrayfire... or any other cmake based
package that I personally maintain if you don't trust my advice.

FYI, I believe the pkgconfig file should also end-up in a multi-arch
path (usr/lib/<multiarch-triplet>/pkgconfig) since it depends on a
multi-arch enabled variable (libdir). I am happy to file a different
bug for it if you want.

Thanks for your work on maintaining jsoncpp.

Cheers,
Ghis


On Tue, 19 Jan 2016 00:17:28 +0100 Peter Spiess-Knafl <d...@spiessknafl.at> wrote:
Hi Ghis!

Thank you for this suggestion. I will check about common practices, how
other packages solve this. I am not sure if what you suggest is policy
compliant.

Anyway I think it is a very good idea.

Greetings
Peter

> Dear Maintainer,
>
> Upon reading the upstream sources, it seems that jsoncpp provides and installs
> a cmake config file alongside the pkg-config file. Please consider installing
> jsoncppConfig.cmake as part of the dev package under the following path:
>
>   /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}/cmake/jsoncpp.
>
> That way, jsoncpp can now be discovered in CMake via find_package.
>
> Best regards,
> Ghis




Reply via email to