[v0.23] Fix FreeBSD compilation issues as reported by #13

This commit is contained in:
Dr-Noob
2022-04-10 16:52:42 +01:00
parent 312d78b7f1
commit 6f196c1797
3 changed files with 13 additions and 2 deletions

View File

@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/sh
# gpufetch build script
set -e
@@ -27,6 +27,13 @@ fi
# cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DENABLE_INTEL_BACKEND=OFF ..
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE ..
make -j$(nproc)
os=$(uname)
if [ "$os" == 'Linux' ]; then
make -j$(nproc)
elif [ "$os" == 'FreeBSD' ]; then
gmake -j4
fi
cd -
ln -s build/gpufetch .