MacOS: CGAL library not found

I was trying to install graph-tool in a virtualenv by manually compiling it. I’m on MacOS with Apple Silicon M4 Max.

Many dependencies were installed by homebrew, e.g., boost and cgal.
I tried the following command:

./configure \                                                              ─╯
  --with-python="$(which python)" \
  --with-boost="$(brew --prefix boost)" \
  --prefix="$HOME/.local" \
  --with-cgal="$(brew --prefix cgal)"

With flags set to:

export CGAL_CPPFLAGS="-I$(brew --prefix cgal)/include"                     ─╯
export CGAL_LDFLAGS="-L$(brew --prefix cgal)/lib -lCGAL -lCGAL_Core -lgmp -lmpfr -lboost_thread-mt -lboost_system"

But I got stuck at:

checking whether CGAL is available in /opt/homebrew/opt/cgal… checking whether CGAL is available in /opt/homebrew/opt/cgal… no

configure: error: CGAL library not found.

Attached is the log file:

config.log (246.3 KB)

Would be great if someone could help.