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

[Issue #485] Replaces install prefix in CMakeLists.txt and adds python dependency #530

Merged
merged 6 commits into from
Sep 5, 2016

Conversation

lr-morales
Copy link
Member

This PR should fix the issue #485 only for the main CMakeLists.txt.

Also a Deps for python2 is included, as at this moment the project is assuming that a python 2.x interpreter exists in the system, that has the default directory tree and that the python version is exactly 2.7; now CMake should check for that.

- Search python 2 executable as a new dependency.
- Search python module "lib" path and stores it in a variable.
This replaces all hardcoded install prefixes ("/usr/local") with the
CMake variable CMAKE_INSTALL_PREFIX, allowing users to set their
favourite prefix.
@aitormf
Copy link
Collaborator

aitormf commented Aug 30, 2016

This PR adds stable level in root CMakeLists and the installation is not well, but gives no error.

for example in Install section, it changes:
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/src/interfaces/libJderobotInterfaces.so DESTINATION /usr/local/lib/jderobot COMPONENT core)

by:
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/src/stable/interfaces/libJderobotInterfaces.so DESTINATION ${CMAKE_INSTALL_PREFIX}/lib/jderobot COMPONENT core)

@lr-morales
Copy link
Member Author

I'll fix it ASAP. Sorry for the bug.

@lr-morales
Copy link
Member Author

All old "stable" directory references should be fixed now, @aitormf.

@aitormf
Copy link
Collaborator

aitormf commented Aug 31, 2016

All works well, I don't see any problem now

@chanfr chanfr merged commit d615ed3 into JdeRobot:master Sep 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants