use python3 as default

This commit is contained in:
sugihara
2025-04-20 00:55:09 +09:00
committed by Vladimir Ermakov
parent dd6b16ac2e
commit 9b5e93633e

View File

@@ -20,8 +20,8 @@ set(CMAKE_INSTALL_LIBDIR lib)
if (DEFINED ENV{ROS_PYTHON_VERSION})
set(Py_VERSION $ENV{ROS_PYTHON_VERSION})
else()
message(WARNING "ENV ROS_PYTHON_VERSION is not set. Use default: 2")
set(Py_VERSION "2")
message(WARNING "ENV ROS_PYTHON_VERSION is not set. Use default: 3")
set(Py_VERSION "3")
endif()
if (NOT CMAKE_VERSION VERSION_LESS "3.12")