Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
vijaiaeroastro committed Aug 5, 2024
1 parent 492107c commit fffe41e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/GenerateMake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@ if [ "$(uname)" = "Darwin" ]; then
# Check if the first argument is Debug mode
if [ "$1" = "Debug" ]; then
shift # Remove the first argument to pass remaining arguments
echo -e "DARWIN+DEBUG\n"
printf "DARWIN+DEBUG\n"
cmake .. -G "Unix Makefiles" -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DCMAKE_BUILD_TYPE=Debug "$@"
else
echo -e "DARWIN+RELEASE\n"
printf "DARWIN+RELEASE\n"
cmake .. -G "Unix Makefiles" -DCMAKE_OSX_ARCHITECTURES="x86_64;arm64" -DCMAKE_BUILD_TYPE=Release "$@"
fi
else
# For Linux and other OSes
if [ "$1" = "Debug" ]; then
shift # Remove the first argument to pass remaining arguments
echo -e "LINUX+DEBUG\n"
printf "LINUX+DEBUG\n"
cmake .. -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug "$@"
else
echo -e "LINUX+RELEASE\n"
printf "LINUX+RELEASE\n"
cmake .. -G "Unix Makefiles" "$@"
fi
fi

0 comments on commit fffe41e

Please sign in to comment.