Some distributions have /usr/lib64 and accordingly pass -DCMAKE_INSTALL_LIBDIR:PATH=lib64 to cmake, but still, systemd is (always) fixed at /usr/lib/systemd.
The adequate way is to query pkgconfig: pkg-config systemd --variable=pkg-config systemd --variable=systemdsystemunitdir. That would also make the Debian check redundant.
Some distributions have
/usr/lib64
and accordingly pass-DCMAKE_INSTALL_LIBDIR:PATH=lib64
to cmake, but still, systemd is (always) fixed at/usr/lib/systemd
.The adequate way is to query pkgconfig:
pkg-config systemd --variable=pkg-config systemd --variable=systemdsystemunitdir
. That would also make the Debian check redundant.