Skip to content

Commit

Permalink
[python] Only support using Python 2 for now
Browse files Browse the repository at this point in the history
Furthermore fix compilation on some Ubuntu system,
see for more info robotology/yarp#151

Ref: #37
  • Loading branch information
traversaro committed Mar 21, 2016
1 parent a030173 commit 1836247
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ project(RTF_python)


# option (RTF_USE_PYTHON_VERSION "" CACHE STRING "Specify python version to use")
set(RTF_USE_PYTHON_VERSION "" CACHE STRING "Specify python version to use" )
set(RTF_USE_PYTHON_VERSION "2" CACHE STRING "Specify python version to use (only Python 2 is supported at the moment)" )

#find_package(PythonInterp ${YARP_USE_PYTHON_VERSION} REQUIRED)
if(RTF_USE_PYTHON_VERSION)
find_package(PythonInterp ${RTF_USE_PYTHON_VERSION} REQUIRED)
find_package(PythonLibs ${RTF_USE_PYTHON_VERSION} EXACT REQUIRED)
else()
find_package(PythonInterp REQUIRED)
find_package(PythonLibs REQUIRED)
endif()

Expand Down

0 comments on commit 1836247

Please sign in to comment.