if building with catkin, don't specifically look for Python 3

This commit is contained in:
TSC21 2020-01-10 17:55:18 +00:00 committed by Nuno Marques
parent 19bd7b29d6
commit c9fc6f8dd1
1 changed files with 7 additions and 1 deletions

View File

@ -264,8 +264,14 @@ if (CATKIN_DEVEL_PREFIX)
endif()
# python
# If using catkin, Python 2 is found since it points
# to the Python libs installed with the ROS distro
include(px4_find_python_module)
if (NOT CATKIN_DEVEL_PREFIX)
find_package(PythonInterp 3 REQUIRED)
else()
find_package(PythonInterp REQUIRED)
endif()
option(PYTHON_COVERAGE "Python code coverage" OFF)
if(PYTHON_COVERAGE)