Skip to content
Snippets Groups Projects
Commit 564a4583 authored by Stefan Herbrechtsmeier's avatar Stefan Herbrechtsmeier Committed by Lukas Bulwahn
Browse files

genpy: Backport relocation changes

parent 75f1c5f5
No related branches found
No related tags found
No related merge requests found
diff -Naur a/cmake/genpy-extras.cmake.em b/cmake/genpy-extras.cmake.em
--- a/cmake/genpy-extras.cmake.em 2013-05-30 12:31:39.000000000 +0200
+++ b/cmake/genpy-extras.cmake.em 2013-05-30 12:43:02.000000000 +0200
@@ -1,13 +1,15 @@
@[if DEVELSPACE]@
# bin dir variables in develspace
set(GENPY_BIN_DIR "@(CMAKE_CURRENT_SOURCE_DIR)/scripts")
+set(CATKIN_FIND_ROOT_PATH_MODE NO_CMAKE_FIND_ROOT_PATH)
@[else]@
# bin dir variables in installspace
set(GENPY_BIN_DIR "@(CMAKE_INSTALL_PREFIX)/@(CATKIN_PACKAGE_BIN_DESTINATION)")
+set(CATKIN_FIND_ROOT_PATH_MODE "")
@[end if]@
+find_program(GENMSG_PY_BIN genmsg_py.py PATHS ${GENPY_BIN_DIR} NO_DEFAULT_PATH CATKIN_FIND_ROOT_PATH_MODE)
+find_program(GENSRV_PY_BIN gensrv_py.py PATHS ${GENPY_BIN_DIR} NO_DEFAULT_PATH CATKIN_FIND_ROOT_PATH_MODE)
-set(GENMSG_PY_BIN ${GENPY_BIN_DIR}/genmsg_py.py)
-set(GENSRV_PY_BIN ${GENPY_BIN_DIR}/gensrv_py.py)
# Generate .msg->.h for py
# The generated .h files should be added ALL_GEN_OUTPUT_FILES_py
From 1bc78ac23e465c1b3ef040d11c53d89cdc00b8ae Mon Sep 17 00:00:00 2001
From: Dirk Thomas <dthomas@osrfoundation.org>
Date: Fri, 26 Jul 2013 13:34:18 -0700
Subject: [PATCH] resolve genpy path in installspace at runtime
(ros/catkin#490)
---
cmake/genpy-extras.cmake.em | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/cmake/genpy-extras.cmake.em b/cmake/genpy-extras.cmake.em
index fd78a97..5a57285 100644
--- a/cmake/genpy-extras.cmake.em
+++ b/cmake/genpy-extras.cmake.em
@@ -1,9 +1,9 @@
@[if DEVELSPACE]@
-# bin dir variables in develspace
+# location of scripts in develspace
set(GENPY_BIN_DIR "@(CMAKE_CURRENT_SOURCE_DIR)/scripts")
@[else]@
-# bin dir variables in installspace
-set(GENPY_BIN_DIR "@(CMAKE_INSTALL_PREFIX)/@(CATKIN_PACKAGE_BIN_DESTINATION)")
+# location of scripts in installspace
+set(GENPY_BIN_DIR "${genpy_DIR}/../../../@(CATKIN_PACKAGE_BIN_DESTINATION)")
@[end if]@
set(GENMSG_PY_BIN ${GENPY_BIN_DIR}/genmsg_py.py)
--
1.8.1.6
......@@ -5,13 +5,13 @@ LIC_FILES_CHKSUM = "file://package.xml;beginline=7;endline=7;md5=d566ef916e9dedc
DEPENDS = "genmsg-native"
PR = "r2"
PR = "r3"
SRC_URI = "https://github.com/ros/${ROS_SPN}/archive/${PV}.tar.gz;downloadfilename=${ROS_SP}.tar.gz"
SRC_URI[md5sum] = "201e3f1aa5e12ccc09159b1a3d9272f7"
SRC_URI[sha256sum] = "9dae768e9350c835ae8a40f19d230e3fe023bfc1e259a14be8b3ae7c4c632d3c"
SRC_URI += "file://0001-genpy-extras.cmake.em-use-find_program-for-GENxxx_PY_BIN.patch"
SRC_URI += "file://0001-resolve-genpy-path-in-installspace-at-runtime.patch"
inherit catkin
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment