-
Notifications
You must be signed in to change notification settings - Fork 196
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
cmake: add uninstall target #478
Conversation
8e97d72
to
a678372
Compare
CMakeLists.txt
Outdated
@@ -1126,3 +1126,13 @@ string(TOLOWER "${unavail_str}" unavail_str) | |||
message(STATUS "SDL3_image backends:") | |||
message(STATUS "- enabled: ${avail_str}") | |||
message(STATUS "- disabled: ${unavail_str}") | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please move this block inside the if(SDLIMAGE_INSTALL)
block? At around line 1080.
Please also use 4-space indentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
I was wondering about that. In SDL there is also a option to disable uninstall. I did not port that. Do we need that here as well? So a if(NOT SDLIMAGE_DISABLE_UNINSTALL)
what is that for?
https://github.com/libsdl-org/SDL/blob/e027b85cc457556071cbb2f3f1bcf8803c1bc001/CMakeLists.txt#L262
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently to support sub projects better according to libsdl-org/SDL@bb9ebad
But I do not think that case needs a separation between install and uninstall. Should be fine to make the uninstall dependent on the install option.
a678372
to
702e64f
Compare
Is the failling CI on me? |
We have a known test issue with newer libjxl. |
702e64f
to
859721b
Compare
859721b
to
8cca4e3
Compare
@madebr, does this make sense to add to the other satellite libraries? |
For those crazy enough to install directly to their root prefix, it's useful. |
We should either remove this PR or apply it universally. My usual workflow is: I have often wanted to be able to Does this PR make that possible? |
Yes it does |
Sweet, then let's propagate it across SDL and satellite libraries. |
The code is yoinked from the SDL repo. Works fine on my machine.