Package: orocos-kdl / 1.4.0-7

0002-Support-in-tree-compilation.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Sun, 22 Apr 2018 12:05:24 +0200
Subject: Support in tree compilation

---
 python_orocos_kdl/CMakeLists.txt | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/python_orocos_kdl/CMakeLists.txt b/python_orocos_kdl/CMakeLists.txt
index 35c1c3e..fda2666 100644
--- a/python_orocos_kdl/CMakeLists.txt
+++ b/python_orocos_kdl/CMakeLists.txt
@@ -2,11 +2,13 @@ cmake_minimum_required(VERSION 2.4.6)
 
 project(python_orocos_kdl)
 
-find_package(orocos_kdl)
+execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ${PROJECT_SOURCE_DIR}/../orocos_kdl/src ${PROJECT_BINARY_DIR}/../orocos_kdl/src/kdl)
+include_directories(${PROJECT_BINARY_DIR}/../orocos_kdl/src)
+include(${PROJECT_BINARY_DIR}/../orocos_kdl/orocos_kdl-config.cmake)
 include_directories(${orocos_kdl_INCLUDE_DIRS})
 link_directories(${orocos_kdl_LIBRARY_DIRS})
 
-SET(PYTHON_VERSION 2 CACHE STRING "Python Version")
+SET(PYTHON_VERSION 3 CACHE STRING "Python Version")
 find_package(PythonInterp ${PYTHON_VERSION} REQUIRED)
 find_package(PythonLibs ${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR} REQUIRED)
 execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(plat_specific=True, prefix=''))" OUTPUT_VARIABLE PYTHON_SITE_PACKAGES OUTPUT_STRIP_TRAILING_WHITESPACE)
@@ -22,4 +24,4 @@ set(SIP_EXTRA_OPTIONS "-o")
 set(PYTHON_SITE_PACKAGES_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/${PYTHON_SITE_PACKAGES})
 add_sip_python_module(PyKDL PyKDL/PyKDL.sip ${orocos_kdl_LIBRARIES})
 
-install(FILES package.xml DESTINATION share/python_orocos_kdl)
\ No newline at end of file
+install(FILES package.xml DESTINATION share/python_orocos_kdl)