mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Find and use Python 2 (#5442)
This will make the build works in distros that have Python 3 as default and will not break anything in distros that have Python 2 as default.
This commit is contained in:
parent
a054fb1e04
commit
723d3c121a
@ -245,7 +245,7 @@ else()
|
||||
message(STATUS "catkin DISABLED")
|
||||
endif()
|
||||
|
||||
find_package(PythonInterp REQUIRED)
|
||||
find_package(PythonInterp 2.7 REQUIRED)
|
||||
|
||||
#=============================================================================
|
||||
# cmake modules
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user