Skip to content

Commit

Permalink
* Automatically setting compiler to clang if mac is set on cmake.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jredmondson committed Jan 1, 2024
1 parent 1b563a9 commit 18a190a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/linux/cmake.sh
Expand Up @@ -63,6 +63,12 @@ if [ $CLEAN -eq 1 ]; then
rm -rf build
fi

if [ $MAC -eq 1 ]; then
echo "Mac detected: setting compiler to clang..."
C_COMPILER='clang'
CPP_COMPILER='clang++'
fi

mkdir build
mkdir install
cd build
Expand Down

0 comments on commit 18a190a

Please sign in to comment.