GLFW on Developer Transition Kit (DTK) for Apple Silicon?

Anybody managing to cmake GLFW on the Developer Transition Kit (DTK) for Apple Silicon? Currently, it creates a libglfw3.a for the wrong architecture, giving this error from the ld when you try to use it:

ld: warning: ignoring file libglfw3.a, building for macOS-arm64 but attempting to link with file built for unknown-x86_64