Hi, I've submitted a patch to upstream CMake that should fix this kind of bugs for good. You can find it at <https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8133>. Please consider reverting the patch moving the files to the libdir once the patch is merged, either upstream or in Debian's cmake package. Thanks!