Use packager friendly install paths (CMake: GNUInstallDirs) [13709] #3683
panicgh
started this conversation in
Unofficial support
Replies: 1 comment
-
Hi @panicgh, thanks for your contribution and sorry for the late response. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Expected Behavior
A maintainer from a Linux distro packages Fast-DDS and needs to customize some installation destinations using the standard variables from GNUInstallDirs as described also in
install
. For example, the maintainer configures CMake with-DCMAKE_INSTALL_DOCDIR=doc/eprosima/fastdds
. Documentation files are then installed into/usr/share/doc/eprosima/fastdds
.Current Behavior
GNUInstallDirs are ignored making it very difficult for package maintainers to customize the installation paths for the distribution package.
Steps to Reproduce
Setup a plain Debian 11 VM and do:
Now follows the important part:
Note the CMake warning and that the documentation files are still installed into
share/doc
instead ofshare/doc/eprosima/fastdds
as specified.System information
Additional context
Fast-DDS's non-standard install directory variables are defined here:
https://github.com/eProsima/Fast-DDS/blob/master/CMakeLists.txt#L100-L110
I think it should not be too difficult to replace them with an
include(GNUInstallDirs)
and use the standard variable names.Beta Was this translation helpful? Give feedback.
All reactions