From ab5c124b64bf3e4a5ef0f56a0d08aa9c657f2edb Mon Sep 17 00:00:00 2001 From: HersheyTriesToCode Date: Mon, 12 Feb 2024 16:57:03 +1000 Subject: [PATCH] how to build on macos using gcc 11 --- bin/cmake_use_gcc_11.sh | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 bin/cmake_use_gcc_11.sh diff --git a/bin/cmake_use_gcc_11.sh b/bin/cmake_use_gcc_11.sh new file mode 100644 index 0000000..f1025d8 --- /dev/null +++ b/bin/cmake_use_gcc_11.sh @@ -0,0 +1,5 @@ +# if on macos use brew to install older g++ +# brew install gcc@11 +# +# then use this cmake command to setup the Makefile to use the older version +cmake .. -DCMAKE_CXX_COMPILER=/opt/homebrew/bin/g++-11 -DCMAKE_C_COMPILER=/opt/homebrew/bin/gcc-11