Merge pull request #1499 from wrosecrans/fix-nproc
Tidy up cmake build script
This commit is contained in:
@@ -1,10 +1,15 @@
|
||||
#!/bin/sh
|
||||
rm CMakeCache.txt
|
||||
mkdir build_cmake
|
||||
|
||||
if [ -e CMakeCache.txt ]; then
|
||||
rm CMakeCache.txt
|
||||
fi
|
||||
mkdir -p build_cmake
|
||||
cd build_cmake
|
||||
cmake -DBUILD_PYBULLET=ON -DBUILD_PYBULLET_NUMPY=OFF -DUSE_DOUBLE_PRECISION=ON -DCMAKE_BUILD_TYPE=Release ..
|
||||
make -j12
|
||||
cmake -DBUILD_PYBULLET=ON -DBUILD_PYBULLET_NUMPY=OFF -DUSE_DOUBLE_PRECISION=ON -DCMAKE_BUILD_TYPE=Release .. || exit 1
|
||||
make -j $(command nproc 2>/dev/null || echo 12) || exit 1
|
||||
cd examples
|
||||
cd pybullet
|
||||
ln -s pybullet.dylib pybullet.so
|
||||
|
||||
if [ -e pybullet.dylib ]; then
|
||||
ln -f -s pybullet.dylib pybullet.so
|
||||
fi
|
||||
echo "Completed build of Bullet."
|
||||
|
||||
Reference in New Issue
Block a user