Skip to content

[Bug] CMake with FHS tries to create a directory outside build on configure #5432

Description

@HuidaeCho

cmake .. -DWITH_FHS=ON tries to create /usr/local/libexec/grass/gui/wxpython on configuring before make install:

file(MAKE_DIRECTORY "${GISBASE}/gui/wxpython")

GISBASE is set here (CMAKE_INSTALL_PREFIX=/usr/local for UNIX [1]):

set(GISBASE ${CMAKE_INSTALL_PREFIX}/${GISBASE_DIR})
set(RUNTIME_GISBASE "${OUTDIR}/${GISBASE_DIR}")

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions