mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
cmake: Use Python3 if available
This brings support for Distros that use Python3 by default such as Arch Linux.
This commit is contained in:
parent
fe9ffb824c
commit
d720cbe189
@ -246,7 +246,8 @@ else()
|
||||
message(STATUS "catkin DISABLED")
|
||||
endif()
|
||||
|
||||
find_package(PythonInterp 2.7 REQUIRED)
|
||||
set(Python_ADDITIONAL_VERSIONS "3"; "2.7")
|
||||
find_package(PythonInterp REQUIRED)
|
||||
|
||||
#=============================================================================
|
||||
# cmake modules
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user