On Fri, Oct 17, 2025 at 05:20:38PM +0200, Andreas Tille wrote: > It would be great if anyone with some CMake knowledge could have a > look.
Disclaimer: My CMake knowledge is next to nothing. The package installs all libraries as private and that's the right thing to do. In the override_dh_auto_install target, it explicitly deletes the headers and all .cmake files (the latter fails because of missing escape). That's also fine and I believe the proper fix is just to delete the lines that generate/install this .cmake file. If the gazillion cmtk libraries were public shared libraries, the fix would be to add "export" to all install(target ...) comands and then use install(export ...). But that would generate a gazillion extra .cmake files (two for each library) and their usefulness is rather questionable, IMHO. I pushed my changes (tested with cmake/4.1.2 from experimental).

