Use GNUInstallDirs to determine installation paths #3138
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I replaced the path-guessing system with GNUInstallDirs which provides override-able sane defaults. To override, pass them in, e.g.
-DCMAKE_INSTALL_LIBDIR=foo
.GNUInstallDirs sets
CMAKE_INSTALL_BINDIR=bin
as well asCMAKE_INSTALL_MANDIR=share/man
. No guessing based on the system and architecture, that's all handled by GNUInstallDirs.CMAKE_INSTALL_FULL_*
is the full path equivalent to the prefixed version withoutFULL
, e.g.CMAKE_INSTALL_BINDIR=bin
, thenCMAKE_INSTALL_FULL_BINDIR=/usr/bin
.This removes the old options
TASK_*
.More information about GNUInstallDirs: https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html
Additional information...
Please run the test suite and include the output of
cd test && ./problems
.Please run
cargo test
and address any failures before submitting.Lots of output here