mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-21 01:12:11 +00: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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user