Command modify

This commit is contained in:
tunmx
2023-03-09 08:48:08 +08:00
parent 5a45797b0e
commit d89904e2bb
2 changed files with 10 additions and 2 deletions
+10 -1
View File
@@ -1,6 +1,15 @@
BUILD_DIR=build/linux
uname_s=$(uname -s)
dir_name="linux"
if [ "$uname_s" == "Darwin" ];then
echo "MacOS"
# shellcheck disable=SC2034
dir_name="darwin"
fi
BUILD_DIR=build/${dir_name}
mkdir -p ${BUILD_DIR}
# shellcheck disable=SC2164
cd ${BUILD_DIR}
cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARE=ON -DBUILD_SAMPLES=OFF -DBUILD_TEST=OFF ../..
@@ -1 +0,0 @@