From 0514862bd896ab4973b70fff6cb1df648615d3f7 Mon Sep 17 00:00:00 2001 From: James Edmondson Date: Sun, 31 Dec 2023 20:53:42 -0800 Subject: [PATCH] Cmake script (#163) * * 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 --- scripts/linux/cmake.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/linux/cmake.sh b/scripts/linux/cmake.sh index abae17e2b..48c369220 100755 --- a/scripts/linux/cmake.sh +++ b/scripts/linux/cmake.sh @@ -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