-
Notifications
You must be signed in to change notification settings - Fork 153
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
Enable CPack #1094
base: develop
Are you sure you want to change the base?
Enable CPack #1094
Conversation
Thank you.
I'm not a cmake expert, but this confuses me. Can you elaborate on your use case? It is already possible to install as a non-privileged user as long as the install directory does not require root permissions. Is this e.g. to allow creating a package that would install to system directories as an unprivileged user? |
When I'm compiling with the clang as installed by debian, the build script tries to generate files in the clang installation folder. This folder requires root access to write. As far as I can see, it is the default behaviour of ExternalProject_Add() to perform and install command of that project during the build step of the main archive. I'm not a cmake expert either, so this is my best attempt at addressing that, but I could imagine this is not the way you'd want to go. |
This is not the default behavior. It only tries to write to |
The build-script I'm using is pasted below, which made me realiase that I upgraded clang,
|
No, the reason it tries to install to PS: We do not recommend using unreleased clang versions, as they tend to have stability issues. |
It seems that that really doesn't fit the existing workflow very well. I made this PR to see if my changes would be helpful for the project as well. It looks like that's not the case, so feel free to close this PR if you think it's too far off from being a helpful addition. |
9141f45
to
c3b4f19
Compare
Is this still needed? Does PR #1172 resolve this issue? |
The current build scripts require root access, since LLVM's SPIRV is installed during the build.
This PR enables CPACK, and allows everything to build without root access.
Having packages instead of an install-during-build, helps me keeping my system clean.
Is this something that's acceptable as a change?