Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reliance on non-standard location parameters #12

Closed
dvzrv opened this issue Dec 14, 2023 · 1 comment
Closed

Reliance on non-standard location parameters #12

dvzrv opened this issue Dec 14, 2023 · 1 comment

Comments

@dvzrv
Copy link

dvzrv commented Dec 14, 2023

Hi! 👋
I am currently trying to package this library for Arch Linux as it is now an implied requirement for ardour.

I noticed that in

LibAAF/CMakeLists.txt

Lines 62 to 64 in 3e4c2cd

set( BIN_INSTALL_PATH "/usr/local/bin/" )
set( LIB_INSTALL_PATH "/usr/local/lib/" )
set( HEADERS_INSTALL_PATH "/usr/local/include/" )

you are hardcoding non-standard location parameters.

This is very bad for downstream packaging as one can not override these locations without patching the CMakeLists.txt.

Please instead rely on GNUInstallDirs, which is a builtin facility of cmake. Reinventing the wheel here will unfortunately be very painful for anyone else otherwise.

All that downstreams should have to pass in to cmake when it comes to defining install location is -D CMAKE_INSTALL_PREFIX=/usr to modify the prefix used for the target location.

I can try and have a look whether I can provide a patch for this.

@agfline
Copy link
Owner

agfline commented Dec 17, 2023

Hi,
Never used cmake before, so any help is appreciated ;)
I will fix that soon, thanks for pointing that out and for the explanations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants