Use GNUInstallDirs macros master
authorJuan Orti Alcaine <jorti@pm.me>
Wed, 5 Feb 2025 09:29:40 +0000 (10:29 +0100)
committerdedeckeh <dedeckeh@gmail.com>
Thu, 6 Feb 2025 20:38:52 +0000 (21:38 +0100)
commit8aa8b706727a6a6a841be42ef35a629ed635db3e
tree44675a37f256bb208c78be5ef39323aedf83e625
parentffbb2d559af42ddb38f315ce0f5f9f70204e1037
Use GNUInstallDirs macros

Instead of installing to a hardcoded path, use the macros from GNUInstallDirs.
This allows proper override of the directories at build time.

This was discovered because the package failed to build in Fedora with the
bin-sbin merge change:

https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin
https://bugzilla.redhat.com/show_bug.cgi?id=2340955

Signed-off-by: Juan Orti Alcaine <jorti@pm.me>
CMakeLists.txt