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...