-
Notifications
You must be signed in to change notification settings - Fork 266
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
build system: Support staged installs via DESTDIR
#86
Comments
Yes, this is something I plan on doing, as part of my migration to cmake.
…On Thu, Apr 8, 2021 at 8:44 AM Paul Menzel ***@***.***> wrote:
Assigned #86
<#86> to
@DrTimothyAldenDavis <https://github.com/DrTimothyAldenDavis>.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#86 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AEYIIOOEAS7F4CKUTA2IDGTTHWXKXANCNFSM42S5T6GQ>
.
|
I just tested a staged install straight from the tarball with
and it worked like a charm. I'd say that is pretty much fixed in 6.0.1. |
Actually scratch that, I didn't notice but it didn't use |
It should be
|
Thanks for the update. I'll close this issue then. |
Yes -- the new cmake build system should be doing the right thing for staged installs. I also have a non-default "local install" option that installs into SuiteSparse/lib, SuiteSparse/include, and SuiteSparse/bin, as a built-in type of staged install. See:
The default "global install" installs into the CMAKE_INSTALL_PREFIX. Changing that will change where "make install" will install the compiled libraries and include.h files. |
DESTDIR should also work, since this environment variable modifies CMAKE_INSTALL_PREFIX (but I haven't tried it): https://cmake.org/cmake/help/latest/envvar/DESTDIR.html#envvar:DESTDIR |
I tested |
Currenty, the variable
INSTALL
seems to be used as prefix, which for CMake isCMAKE_INSTALL_PREFIX
.SuiteSparse/SuiteSparse_config/SuiteSparse_config.mk
Lines 60 to 86 in 257b2ba
Packagers often require support for staged installs. From CMake documentation:
It’d be great, if the install target could be extended to support the variable
DESTDIR
.The text was updated successfully, but these errors were encountered: