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

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

 



I wrote:
> 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.

PS: I guess all upstreams just copy&paste the example in:
https://cmake.org/cmake/help/v3.15/manual/cmake-packages.7.html#creating-packages
which hardcodes:
set(ConfigPackageLocation lib/cmake/ClimbingStats)
and do not understand that architecture-independent packages should use:
set(ConfigPackageLocation share/cmake/ClimbingStats)
instead (and hardcoding "lib" is entirely wrong because this should usually
be "lib64" on Fedora).

        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