From d720cbe1897600cf38020182d352577c28d86139 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Sun, 20 Nov 2016 17:52:22 +0100 Subject: [PATCH] cmake: Use Python3 if available This brings support for Distros that use Python3 by default such as Arch Linux. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ff6a5844e..549ea5581a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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