Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmake: make install DESTDIR="something" ignores GLOBAL_DIR option #8204
Version of OpenTTD
Git commit 90e8491
OpenTTD files being installed to selected GLOBAL_DIR
OpenTTD files being installed to DEFAULT_GLOBAL_DIR
Steps to reproduce
Maybe I did something wrong?
System: Arch Linux, cmake 3.17.2
PS can't find an option like old
Based on https://cmake.org/cmake/help/v3.17/envvar/DESTDIR.html and https://cmake.org/cmake/help/v3.17/variable/CMAKE_INSTALL_PREFIX.html, I guess, with your steps, openttd is installed in "path/to/install/usr/local"
And I think there's indeed an issue with DEFAULT_GLOBAL_DIR, it doesn't respect OPTION_INSTALL_FHS
And this is what I'm trying to do. My problem is "I can't rename openttd GLOBAL_DIR to make it not collide with release version to have both compiled-from-git and release versions at same time"
@glx22 can you investigate this problem? I need this to be solved to be able to update AUR openttd-git package
So, as far as I understand, if I will compile OpenTTD with -DGLOBAL_DIR="/games/openttd" and will install it (to /usr/local/games/openttd, because of defaults) OpenTTD will not be able to find it's own files? Seems like a bug
Yes, it'll be useful. Maybe, unify some variables like GLOBAL_DIR (make it dependent on DATA_DESTINATION_DIR)
In some words: reimplement configurable