Skip to content

Commit

Permalink
update linux build for release
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangjipeng committed Jul 5, 2024
1 parent 3fc531d commit 6ed8e4e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions build_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,14 @@

mkdir proj
cd proj
# cmake -DCMAKE_BUILD_TYPE=Release ..
cmake -DCMAKE_BUILD_TYPE=Debug ..

build_type="-DCMAKE_BUILD_TYPE=Debug"

if [ "$1" = "release" ]; then
build_type="-DCMAKE_BUILD_TYPE=Release"
fi

cmake ${build_type} ..

echo "Please change dir to \"proj\" and type \"make\""
echo "...\n"

0 comments on commit 6ed8e4e

Please sign in to comment.