Re: Revisiting header-only packages and noarch

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

 



On 12/9/21 09:43, Florian Weimer wrote:
Can we teach cmake to look under %{_datarootdir}/cmake as well?

Thanks,
Florian

I think that this will work already in at least some cases [1]. Some packages are already installing .cmake files to %{_datadir}/cmake/<name>, %{_datadir}/<name>/cmake, or similar.

It may be that patching CMakeLists.txt to adjust the install path for these files, or applying “mv” after %cmake_install, could be a reasonable choice for some header-only library packages that have arch-independent .cmake files installed at an arch-dependent path. I don’t know CMake’s many special cases well enough to say whether or not this is always safe to do.

– Ben

[1] https://cmake.org/cmake/help/latest/command/find_package.html#config-mode-search-procedure
_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-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/packaging@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux