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