From 73721147ef7339df11a6a587f15db73410168873 Mon Sep 17 00:00:00 2001 From: Matthijs van der Burgh Date: Sat, 13 Feb 2021 11:36:37 +0100 Subject: [PATCH] (PyKDL) set PYBIND11_PYTHON_VERSION to supress warning --- python_orocos_kdl/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python_orocos_kdl/CMakeLists.txt b/python_orocos_kdl/CMakeLists.txt index 71fd712a3..e1ce5632c 100644 --- a/python_orocos_kdl/CMakeLists.txt +++ b/python_orocos_kdl/CMakeLists.txt @@ -16,6 +16,8 @@ else() SET(PYTHON_VERSION 2 CACHE STRING "Python Version") endif() +set(PYBIND11_PYTHON_VERSION ${PYTHON_VERSION} CACHE STRING "Python version used by PyBind11") + find_package(PythonInterp ${PYTHON_VERSION} REQUIRED) find_package(PythonLibs ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR} REQUIRED) # get_python_lib in python3 produces path which isn't in sys.path: https://bugs.launchpad.net/ubuntu/+source/python3-stdlib-extensions/+bug/1832215