File: 0005-Sat-ROS_ROOT-for-rosmake-if-it-s-not-set.patch

package info (click to toggle)
ros-ros 1.15.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,688 kB
  • sloc: python: 6,824; xml: 486; cpp: 316; sh: 180; awk: 15; makefile: 10
file content (20 lines) | stat: -rw-r--r-- 595 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From: Jochen Sprickerhof <git@jochen.sprickerhof.de>
Date: Tue, 1 Sep 2015 08:37:52 +0200
Subject: Sat ROS_ROOT for rosmake if it's not set

---
 core/mk/cmake.mk | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/core/mk/cmake.mk b/core/mk/cmake.mk
index c0f8f80..923466b 100644
--- a/core/mk/cmake.mk
+++ b/core/mk/cmake.mk
@@ -1,3 +1,7 @@
+ifeq ($(ROS_ROOT),)
+	export ROS_ROOT=/usr/share/ros
+endif
+
 # set EXTRA_CMAKE_FLAGS in the including Makefile in order to add tweaks
 CMAKE_FLAGS= -Wdev -DCMAKE_TOOLCHAIN_FILE=$(ROS_ROOT)/core/rosbuild/rostoolchain.cmake $(EXTRA_CMAKE_FLAGS)