Optimize parallel compilation

(cherry picked from commit 3c8928b3b81ccf99aef28b362d88795d9c4927cf)
This commit is contained in:
maminjie 2021-04-27 14:15:04 +08:00 committed by openeuler-sync-bot
parent 47b73d7907
commit 12d308d000

View File

@ -1,6 +1,6 @@
Name: nodelet_core Name: nodelet_core
Version: 1.9.16 Version: 1.9.16
Release: 2 Release: 3
Summary: This is ROS melodic nodelet_core Package Summary: This is ROS melodic nodelet_core Package
License: GPL License: GPL
URL: https://github.com/ros-gbp/nodelet_core-release/archive/release/melodic/nodelet_core URL: https://github.com/ros-gbp/nodelet_core-release/archive/release/melodic/nodelet_core
@ -102,7 +102,7 @@ cd console_bridge/
mkdir build/ mkdir build/
cd build/ cd build/
cmake .. cmake ..
make make %{?_smp_mflags}
make install make install
cd .. cd ..
cd .. cd ..
@ -112,7 +112,7 @@ mkdir cmake-build/
mkdir cmake-release/ mkdir cmake-release/
cd cmake-build/ cd cmake-build/
cmake .. cmake ..
make -j8 make %{?_smp_mflags}
make install make install
cd .. cd ..
cd .. cd ..
@ -122,7 +122,7 @@ cd tinyxml2/
mkdir build mkdir build
cd build cd build
cmake .. cmake ..
make -j5 make %{?_smp_mflags}
make install make install
cd .. cd ..
cd .. cd ..
@ -148,7 +148,7 @@ cd orocos_kdl/
mkdir build mkdir build
cd build cd build
cmake .. cmake ..
make install make %{?_smp_mflags} install
cd .. cd ..
cd .. cd ..
@ -164,7 +164,7 @@ cd ..
#compile #compile
./src/catkin/bin/catkin_make_isolated ./src/catkin/bin/catkin_make_isolated %{?_smp_mflags}
#install #install
@ -181,6 +181,9 @@ echo %{buildroot}
#/usr/lib/share/catkin/cmake/* #/usr/lib/share/catkin/cmake/*
%changelog %changelog
* Tue Apr 27 2021 maminjie <maminjie1@huawei.com> - 1.9.16-3
- Optimize parallel compilation
* Sat Feb 20 2021 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.9.16-2 * Sat Feb 20 2021 zhangjiapeng <zhangjiapeng9@huawei.com> - 1.9.16-2
- Add compilation dependency python3-unversioned-command - Add compilation dependency python3-unversioned-command