Prepend DESTDIR to CMAKE_INSTALL_PREFIX to run cpack out of the box#56
Closed
mlaveaux wants to merge 1 commit intotrolando:masterfrom
Closed
Prepend DESTDIR to CMAKE_INSTALL_PREFIX to run cpack out of the box#56mlaveaux wants to merge 1 commit intotrolando:masterfrom
mlaveaux wants to merge 1 commit intotrolando:masterfrom
Conversation
…he installation prefix.
Owner
|
I had a go at the whole build script with some suggestions from Claude, and the result might actually be cleaner: 1188edd Can you see if that works for you? |
1188edd to
c3dce1d
Compare
Contributor
Author
|
The new version works resolved the cpack issue so this seems to be resolved. By the way I can also open another issue for it, but we get warnings related to this line in the This yields some warning when running cmake: Commenting it out fixes it for us, but just for your information. |
Owner
|
Alright! I've fixed that for the next version of Sylvan (or just pull the master branch) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I don't know how people ever figured this out in mCRL2, but it seems that
pack -G DEBuses a hidden environment variable called DESTDIR to overwrite theCMAKE_INSTALL_PREFIXsuch that it does not require sudo rights for making the installation package.With these changes generating the package works properly on Ubuntu and Fedora. This variable does not work on Windows, so this might required special attention that I did not look into. Alternatively, we would have to overwrite
CMAKE_INSTALL_PREFIXourselves in the CI, but this change does seem like the standard "solution".