-
-
Notifications
You must be signed in to change notification settings - Fork 353
[Bug] CMake with FHS tries to create a directory outside build on configure #5432
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
Comments
cmake .. -DWITH_FHS=ON
tries to create a directory in /usr/local
cmake .. -DWITH_FHS=ON
tries to create a directory in /usr/local
cmake .. -DWITH_FHS=ON
tries to create a directory in /usr/local
Glad to see you reached so far as to test FHS! :-) I haven't, since I left over the baton a year ago. There are a number of hard coded links (relative to GISBASE) to files/directories in code, which I didn't want to address at that time. It may look like: Line 364 in 18e0846
The whole block you refer to was a temporary hack to "get thing moving" at the time: Lines 175 to 194 in 18e0846
The files/directories are with FHS located elsewhere, and this we need to address in code. They are $GISBASE +
I'm now sure how to best address this to account for both current system and the FHS, but the time has come for us to find a solution. ( |
Perhaps we can introduce another environment variable: e.g.,
Which in practice could look like: snprintf(path, GPATH_MAX, "%s/etc/colors.desc", G_grass_share_dir());
|
cmake .. -DWITH_FHS=ON
tries to create/usr/local/libexec/grass/gui/wxpython
on configuring beforemake install
:grass/CMakeLists.txt
Line 191 in 8bf4f68
GISBASE
is set here (CMAKE_INSTALL_PREFIX=/usr/local
for UNIX [1]):grass/cmake/modules/GRASSInstallDirs.cmake
Lines 81 to 82 in 8bf4f68
RUNTIME_GISBASE
(not clear why it's called "runtime") is created in the build output directory, which is fine. I think we should create any directories or files outside the build directory only on installation.The text was updated successfully, but these errors were encountered: