Vitaly Zaitsev via devel wrote:
Most of modern C++ header-only libraries provides Cmake scripts.
Such
scripts will be installed to %{_libdir}/cmake/foo. That's why they
cannot be noarch.
CMake will actually also find the scripts if you install them to
%{_datadir}/cmake/foo. And if (and ONLY if) there is nothing
architecture-dependent in them, that is exactly where they belong.
Unfortunately, the only package other than CMake itself that I see using
this on my system is bash-completion.
Kevin Kofler