Re: packaging: upgrade a library to a header-only library

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Neal Gompa wrote:
> If it's a header-only library, CMake stuff being installed into
> %{_libdir} is probably wrong. CMake has a noarch path in %{_datadir},
> so it probably needs fixing to use that.

Indeed, CMake will also find CMake data under %{_datadir}, and data for 
noarch packages must be installed there.

CMake will not do it automagically for you, you need to actually explicitly 
install the files to the proper place. INSTALL(EXPORTS takes a DESTINATION 
argument:
https://cmake.org/cmake/help/v3.15/command/install.html#installing-exports
It needs to be set to the correct path.

        Kevin Kofler
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux