mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 04:06:33 +08:00
if building with catkin, don't specifically look for Python 3
This commit is contained in:
+7
-1
@@ -264,8 +264,14 @@ if (CATKIN_DEVEL_PREFIX)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
# python
|
# 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)
|
include(px4_find_python_module)
|
||||||
find_package(PythonInterp 3 REQUIRED)
|
if (NOT CATKIN_DEVEL_PREFIX)
|
||||||
|
find_package(PythonInterp 3 REQUIRED)
|
||||||
|
else()
|
||||||
|
find_package(PythonInterp REQUIRED)
|
||||||
|
endif()
|
||||||
|
|
||||||
option(PYTHON_COVERAGE "Python code coverage" OFF)
|
option(PYTHON_COVERAGE "Python code coverage" OFF)
|
||||||
if(PYTHON_COVERAGE)
|
if(PYTHON_COVERAGE)
|
||||||
|
|||||||
Reference in New Issue
Block a user