Skip to content

Commit

Permalink
Improve create_release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mortinger91 committed Oct 24, 2023
1 parent 60291ad commit 6c62794
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions ProjectFolder/scripts/create_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
echo "Started building Release CMAKE files..."

# Clearing build folder if it exists
rm -r build/release &> /dev/null
rm -r build/Release &> /dev/null

echo "Deciding if tests need to be built..."
echo -n "Deciding if tests need to be built... "
if [ -n "$1" ]; then
if [ "$1" == "withTests" ]; then
BUILD_TESTS="ON"
echo "Building with tests"
echo "YES"
fi
else
BUILD_TESTS="OFF"
echo "Building without tests"
echo "NO"
fi

cmake -SProjectFolder --preset Release -DBUILD_TESTS=$BUILD_TESTS
Expand Down
2 changes: 1 addition & 1 deletion ProjectFolder/scripts/windows/create_release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Write-Host "Started building Release CMake files..."

# Clearing build folder if it exists
Remove-Item -Path "build/release" -Recurse -ErrorAction SilentlyContinue
Remove-Item -Path "build/Release" -Recurse -ErrorAction SilentlyContinue

Write-Host "Deciding if tests need to be built..."
if ($args.Length -gt 0) {
Expand Down

0 comments on commit 6c62794

Please sign in to comment.