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
make paths modifiable #71
Conversation
make path_share look explicitly in SHAREDIR instead of potentially-broken relative path
There is "texture_path" in minetest.conf, it works fine for me. |
The paths are still not modifiable, only the cmake prefix and that is not sufficient for some cases. |
Can you tell those cases? |
All cases where the binary and the data files go into a distro-specific custom location like "/usr/share/games" and "/usr/games/bin/" without system-data like "/usr/share/icons", "/usr/share/man" or "/usr/share/applications" ending up there too, because we only have the cmake-prefix and nothing else. minetest.conf does not help in this case unless I want to ignore the cmake install rules and write my own + mess with user-configuration which is not good practice. |
I wonder if these patches break any existing build scripts or installations; has anyone tested? |
It should not break, because I added However I could test this on archlinux shortly... |
I have tested this on archlinux and the resulting directory structure was exactly the same. |
Modified and added a number of things in aef1332. It should fix this too. Can you confirm? |
I think "CACHE PATH" is to be preferred over "CACHE STRING" here and makes a difference for people using CMake GUI, although I never tried it. I find the CUSTOM_* stuff confusing, but yes, it works. |
I didn't want to cache the paths generated based on The STRING vs. PATH is a good catch. Altough those are basically useless on anything else than unix-style platforms, on which nobody uses GUIs... so I'll just let them be as for now. I consider this closed - new issues or pull requests should be made for further problems. |
paths are made modifiable
path_share had to be fixed too, so it get's the texture location
did I miss anything?