Fix DESTDIR usage

Authored by arojas on Mar 25 2020, 6:38 PM.

Description

Fix DESTDIR usage

kajongg's build system uses DESTDIR during cmake to construct the command that creates the kajongg and kajonggserver symlinks in bindir.
This is a problem for distributions, which usually have separated cmake/make/make install stages with DESTDIR only available in the later one.
So distros are currently working around this in different ways, either creating the symlinks manually after make install (Gentoo, Fedora) or defining DESTDIR before running cmake (Arch, Opensuse).

This patch changes the symlink installation process to only make the DESTDIR substitution during make install.

Differential Revision: https://phabricator.kde.org/D27330

Details

Committed
arojasMar 25 2020, 6:38 PM
Differential Revision
D27330: Fix DESTDIR usage
Parents
R387:8b802bbfc367: Merge remote-tracking branch 'origin/release/19.12'
Branches
Unknown
Tags
Unknown
References
tag: v20.03.90