csound / plugins

Repository for Csound plugins which were originally in the main repository, and for new plugins as well.
GNU Lesser General Public License v2.1
11 stars 11 forks source link

Plugins are installed to HOME #6

Closed dvzrv closed 2 years ago

dvzrv commented 2 years ago

Hi! When looking into packaging this project for Arch Linux, I realized that the installation directory for the plugins is hardcoded to the caller's $HOME. This is rather bad practice in regards to dealing with this in the context of cmake, as it does not allow for any sane override with the usual environment variables such as DESTDIR.

The default should always be to adhere to the system location (e.g. /usr/local) and if installing to a user's home is desired, then this should not be the norm, but be an optional feature.

vlazzarini commented 2 years ago

it now uses CMAKE_INSTAL_PREFIX as in the Csound library project.