summaryrefslogtreecommitdiff
path: root/nebula-core-hw-interfaces.spec
diff options
context:
space:
mode:
Diffstat (limited to 'nebula-core-hw-interfaces.spec')
-rw-r--r--nebula-core-hw-interfaces.spec9
1 files changed, 3 insertions, 6 deletions
diff --git a/nebula-core-hw-interfaces.spec b/nebula-core-hw-interfaces.spec
index 5e5eaf9..1edb049 100644
--- a/nebula-core-hw-interfaces.spec
+++ b/nebula-core-hw-interfaces.spec
@@ -38,7 +38,6 @@ HTTP) for the Nebula sensor driver framework.
export PYTHONPATH=/opt/ros/%{ros_distro}/lib/python%{python3_version}/site-packages${PYTHONPATH:+:$PYTHONPATH}
export PKG_CONFIG_PATH=/opt/ros/%{ros_distro}/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}
-mkdir -p .obj && cd .obj
%cmake3 \
-DCMAKE_INSTALL_PREFIX="/opt/ros/%{ros_distro}" \
-DAMENT_PREFIX_PATH="/opt/ros/%{ros_distro}" \
@@ -48,13 +47,11 @@ mkdir -p .obj && cd .obj
-DSETUPTOOLS_DEB_LAYOUT=OFF \
-DBUILD_TESTING=OFF -DTESTING=OFF \
-DCMAKE_SUPPRESS_REGENERATION=ON \
- -S ../nebula_core/nebula_core_hw_interfaces \
- -B .
-make %{?_smp_mflags}
+ -S src/nebula_core/nebula_core_hw_interfaces
+%cmake3_build
%install
-cd .obj
-make install DESTDIR=%{buildroot}
+%cmake3_install
%files
/opt/ros/%{ros_distro}/