In addition, if openCARP is built with external tools, and meshtool in particular, setting the following environment variables can also help:
export CPATH=$CPATH:$(brew --prefix)/opt/libomp/include
export LIBRARY_PATH=$LIBRARY_PATH:$(brew --prefix)/opt/libomp/lib