Skip to content

Commit

Permalink
Cmake script (#163)
Browse files Browse the repository at this point in the history
* * Added features to the cmake.sh script so it can switch between g++ and clang as well as tests. Added help option for help printout

* * Automatically setting compiler to clang if mac is set on cmake.sh
  • Loading branch information
jredmondson committed Jan 1, 2024
1 parent 8e59f80 commit 0514862
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 0514862

Please sign in to comment.