summaryrefslogtreecommitdiff
path: root/rtabmap.spec
diff options
context:
space:
mode:
Diffstat (limited to 'rtabmap.spec')
-rw-r--r--rtabmap.spec3
1 files changed, 2 insertions, 1 deletions
diff --git a/rtabmap.spec b/rtabmap.spec
index 3b72b89..d817408 100644
--- a/rtabmap.spec
+++ b/rtabmap.spec
@@ -55,6 +55,8 @@ RTAB-Map's standalone library. RTAB-Map is a RGB-D SLAM approach with real-time
%prep
%autosetup -p1 -n rtabmap-%{version}
+# Add suitesparse include directory for g2o's csparse extension
+sed -i '/^project/a include_directories(/usr/include/suitesparse)' CMakeLists.txt
%build
# Needed to bootstrap since the ros_workspace package does not yet exist.
@@ -64,7 +66,6 @@ export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packa
# in the install tree and source it. It will set things like
# CMAKE_PREFIX_PATH, PKG_CONFIG_PATH, and PYTHONPATH.
if [ -f "/opt/ros/%{ros_distro}/setup.sh" ]; then . "/opt/ros/%{ros_distro}/setup.sh"; fi
-export CXXFLAGS="-I/usr/include/suitesparse $CXXFLAGS"
mkdir -p .obj-%{_target_platform} && cd .obj-%{_target_platform}
%cmake3 \
-UINCLUDE_INSTALL_DIR \