Skip to content
This repository was archived by the owner on Feb 21, 2021. It is now read-only.
This repository was archived by the owner on Feb 21, 2021. It is now read-only.

CMakeLists chain doesn't honour path variables. #485

@lr-morales

Description

@lr-morales

At this moment, some CMakeLists.txt have hardcoded some of the installation paths, like /usr/local/ for base install path and /usr/lib/python2.7 for the location of Python. This would make users who need or want different destination paths for JdeRobot or with a non-standard python locations unable to change the paths for their installations in an easy way.

For the base install path, the CMake variable CMAKE_INSTALL_PREFIX should be used, as this is the variable that - under the view of CMake - marks the path prefix of main installation for a project.
In case of other path dependencies like the python one, we should use non-hardcoded methods when possible; i. e. worst case for python would be "asking the interpreter where the libraries should be"... meaning that the python interpreter location should be located too).

This would also mean that tools (like visualHFSM) or drivers of JdeRobot should not assume they or jderobot will reside in /usr/local in their code. This can be solved changing the sources to allow the usage of CMake functions like configure_file to resolve the installation path when running cmake.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions