mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
build system: make INSTALL_ROOT depend on BUILD_PREFIX as well
This makes things more consistent. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
623eb6a16f
commit
ebe317d644
1 changed files with 6 additions and 2 deletions
|
@ -174,8 +174,12 @@ if [[ ! -d "subsurface" ]] ; then
|
|||
exit 1
|
||||
fi
|
||||
|
||||
mkdir -p install-root
|
||||
INSTALL_ROOT=$SRC/install-root
|
||||
if [ -z "$BUILD_PREFIX" ] ; then
|
||||
INSTALL_ROOT=$SRC/install-root
|
||||
else
|
||||
INSTALL_ROOT="$BUILD_PREFIX"install-root
|
||||
fi
|
||||
mkdir -p "$INSTALL_ROOT"
|
||||
export INSTALL_ROOT
|
||||
|
||||
# make sure we find our own packages first (e.g., libgit2 only uses pkg_config to find libssh2)
|
||||
|
|
Loading…
Reference in a new issue