Don’t try to install something when running from uninstalled source (#12246).

Original patch by Tshepang Lekhonkhobe.
4 files changed