Skip to content

Commit 7372114

Browse files
committed
(PyKDL) set PYBIND11_PYTHON_VERSION to supress warning
1 parent 0b1b52e commit 7372114

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

python_orocos_kdl/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ else()
1616
SET(PYTHON_VERSION 2 CACHE STRING "Python Version")
1717
endif()
1818

19+
set(PYBIND11_PYTHON_VERSION ${PYTHON_VERSION} CACHE STRING "Python version used by PyBind11")
20+
1921
find_package(PythonInterp ${PYTHON_VERSION} REQUIRED)
2022
find_package(PythonLibs ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR} REQUIRED)
2123
# get_python_lib in python3 produces path which isn't in sys.path: https://bugs.launchpad.net/ubuntu/+source/python3-stdlib-extensions/+bug/1832215

0 commit comments

Comments
 (0)