Browse Source

cmake: Use Python3 if available

This brings support for Distros that use Python3 by default such as
Arch Linux.
sbg
Julian Oes 8 years ago committed by Lorenz Meier
parent
commit
d720cbe189
  1. 3
      CMakeLists.txt

3
CMakeLists.txt

@ -246,7 +246,8 @@ else() @@ -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…
Cancel
Save